aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query')
-rw-r--r--tests/query/highlights/fusion/afx.fusion17
-rw-r--r--tests/query/highlights/fusion/basic.fusion1
-rw-r--r--tests/query/highlights/fusion/expressions.fusion8
3 files changed, 25 insertions, 1 deletions
diff --git a/tests/query/highlights/fusion/afx.fusion b/tests/query/highlights/fusion/afx.fusion
new file mode 100644
index 000000000..4ccb8174f
--- /dev/null
+++ b/tests/query/highlights/fusion/afx.fusion
@@ -0,0 +1,17 @@
+property = afx`
+ <!-- some comment -->
+<!-- ^@comment -->
+
+ <div attribute="value">text</div>
+<!-- ^@tag -->
+<!-- ^@tag.attribute -->
+<!-- ^@string -->
+<!-- ^@punctuation.bracket -->
+<!-- ^@tag -->
+
+ <Namespace:Type {...spread} some={(a) => true} />
+<!-- ^@tag -->
+<!-- ^@variable -->
+<!-- ^@variable -->
+<!-- ^@boolean -->
+`
diff --git a/tests/query/highlights/fusion/basic.fusion b/tests/query/highlights/fusion/basic.fusion
index d2ee5a5b9..e4c4d6afc 100644
--- a/tests/query/highlights/fusion/basic.fusion
+++ b/tests/query/highlights/fusion/basic.fusion
@@ -1,6 +1,5 @@
include: SomeFile.fusion
//<- include
-// ^punctuation.delimiter
// ^text.uri
namespace: ns = Neos.Fusion.Space
diff --git a/tests/query/highlights/fusion/expressions.fusion b/tests/query/highlights/fusion/expressions.fusion
index 6646eadac..a0b82b511 100644
--- a/tests/query/highlights/fusion/expressions.fusion
+++ b/tests/query/highlights/fusion/expressions.fusion
@@ -23,6 +23,14 @@ propertyPath = ${property.path}
// ^variable
// ^variable
+thisorProps = ${this.path}
+// ^variable.builtin
+// ^variable
+
+thisorProps = ${props.path}
+// ^variable.builtin
+// ^variable
+
array = ${[]}
// ^punctuation.bracket