mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
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>
This commit is contained in:
parent
56634f49ab
commit
6b5b37cc3e
6 changed files with 73 additions and 26 deletions
17
tests/query/highlights/fusion/afx.fusion
Normal file
17
tests/query/highlights/fusion/afx.fusion
Normal file
|
|
@ -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 -->
|
||||
`
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
include: SomeFile.fusion
|
||||
//<- include
|
||||
// ^punctuation.delimiter
|
||||
// ^text.uri
|
||||
|
||||
namespace: ns = Neos.Fusion.Space
|
||||
|
|
|
|||
|
|
@ -23,6 +23,14 @@ propertyPath = ${property.path}
|
|||
// ^variable
|
||||
// ^variable
|
||||
|
||||
thisorProps = ${this.path}
|
||||
// ^variable.builtin
|
||||
// ^variable
|
||||
|
||||
thisorProps = ${props.path}
|
||||
// ^variable.builtin
|
||||
// ^variable
|
||||
|
||||
array = ${[]}
|
||||
// ^punctuation.bracket
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue