nvim-treesitter/tests/query/highlights/fusion/basic.fusion
jirgn 6b5b37cc3e
update fusion to version 1.1.1 (#2148)
* feat(fusion): update tests

* fix(fusion): update lockfile

* fix(fusion): update to (highlight breaking) version 1.1.0

* update grammer to introduce afx support
* update tests and queries

* fix: revert lockfile update of unrelated grammars

* fix: update to 1.1.1 and fix hightlights

* fix: use @tag.attribute capture to match specs

Co-authored-by: Jirgn <jirgn76@googlemail.com>
2021-12-23 11:18:15 -05:00

60 lines
1.1 KiB
Text

include: SomeFile.fusion
//<- include
// ^text.uri
namespace: ns = Neos.Fusion.Space
//<- keyword
// ^namespace
// ^operator
// ^namespace
prototype(MyType) < prototype(ns:SuperType) {
//<-keyword
// ^punctuation.bracket
// ^type
// ^punctuation.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
}