diff options
| author | Jirgn <jirgn76@googlemail.com> | 2021-12-05 23:26:59 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-12-06 21:51:53 +0100 |
| commit | f51aa0b75ebc09e811fb775932635e80bfc8d343 (patch) | |
| tree | ef748b198439d587e6b88e55d3b0d019d46dd83e | |
| parent | 5684389a2707a43c50f706d3c63a46ecad4dc8c3 (diff) | |
feat(fusion): update tests
| -rw-r--r-- | queries/fusion/highlights.scm | 11 | ||||
| -rw-r--r-- | tests/query/highlights/fusion/basic.fusion | 8 |
2 files changed, 11 insertions, 8 deletions
diff --git a/queries/fusion/highlights.scm b/queries/fusion/highlights.scm index e824f0a4..ba655c0b 100644 --- a/queries/fusion/highlights.scm +++ b/queries/fusion/highlights.scm @@ -23,8 +23,9 @@ ) (include_statement - "include" @include - ":" @punctuation.delimiter + [ + "include" + ] @include (source_file) @text.uri ) @@ -32,14 +33,14 @@ "namespace" @keyword (alias_namespace) @namespace) -(identifier_type +(type name: (type_name) @type) ; tokens ; ------ [ - (identifier_package) + (package_name) (alias_namespace) ] @namespace @@ -83,3 +84,5 @@ "." "?" ] @punctuation.delimiter + + diff --git a/tests/query/highlights/fusion/basic.fusion b/tests/query/highlights/fusion/basic.fusion index 644a2d9e..d2ee5a5b 100644 --- a/tests/query/highlights/fusion/basic.fusion +++ b/tests/query/highlights/fusion/basic.fusion @@ -3,11 +3,11 @@ include: SomeFile.fusion // ^punctuation.delimiter // ^text.uri -namespace ns = Neos.Fusion.Space +namespace: ns = Neos.Fusion.Space //<- keyword -// ^namespace -// ^operator -// ^namespace +// ^namespace +// ^operator +// ^namespace prototype(MyType) < prototype(ns:SuperType) { //<-keyword |
