summaryrefslogtreecommitdiff
path: root/tests/query/highlights/fusion/basic.fusion
diff options
context:
space:
mode:
authorJirgn <jirgn76@googlemail.com>2021-11-26 16:37:51 +0100
committerStephan Seitz <stephan.seitz@fau.de>2021-11-26 22:04:59 +0100
commit979c32493d1edabb949badf00da9d130d966aaae (patch)
tree1ecc73f323a2a72910d24714cab880acd8886d8f /tests/query/highlights/fusion/basic.fusion
parentfbbcfa7b6c0841e19f39836a7c5561fd9cc6900f (diff)
feat: add fusion grammar and highlights
Diffstat (limited to 'tests/query/highlights/fusion/basic.fusion')
-rw-r--r--tests/query/highlights/fusion/basic.fusion61
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/query/highlights/fusion/basic.fusion b/tests/query/highlights/fusion/basic.fusion
new file mode 100644
index 00000000..7149956a
--- /dev/null
+++ b/tests/query/highlights/fusion/basic.fusion
@@ -0,0 +1,61 @@
+include: SomeFile.fusion
+//<- include
+// ^punctation.delimiter
+// ^uri
+
+namespace ns = Neos.Fusion.Space
+//<- keyword
+// ^namespace
+// ^operator
+// ^namespace
+
+prototype(MyType) < prototype(ns:SuperType) {
+//<-keyword
+// ^punctation.bracket
+// ^type
+// ^punctation.bracket
+// ^operator
+// ^namespace
+// ^type
+
+ deleteProp >
+ // ^operator
+
+ string = 'value'
+ //<- property
+ // ^operator
+ // ^string
+
+ number = 10.2
+ // ^number
+
+ null = null
+ // ^constant.builtin
+
+ boolean = true
+ // ^boolean
+
+ property.inner = "value"
+ //<- property
+ // ^property
+
+ property.@meta = "value"
+ //<- property
+ // ^attribute
+
+ property.type = SomeType
+ //<- property
+ // ^type
+
+ property.aliasedType = ns:SomeType
+ //<- property
+ // ^namespace
+ // ^type
+
+ property.fullQualifiedType = SomeNamespace:SomeType
+ //<- property
+ // ^namespace
+ // ^type
+
+}
+