mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
feat: add fusion grammar and highlights
This commit is contained in:
parent
fbbcfa7b6c
commit
979c32493d
7 changed files with 235 additions and 0 deletions
61
tests/query/highlights/fusion/basic.fusion
Normal file
61
tests/query/highlights/fusion/basic.fusion
Normal file
|
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue