diff options
| author | jirgn <jirgnmssnr@googlemail.com> | 2021-12-23 17:18:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-23 11:18:15 -0500 |
| commit | 6b5b37cc3ee2468beef1289980102fc3c4e06e2c (patch) | |
| tree | c31e69ca7784f856c751c6215b97a0946b22439d /tests/query | |
| parent | Update queries (diff) | |
| download | nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.tar nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.tar.gz nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.tar.bz2 nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.tar.lz nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.tar.xz nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.tar.zst nvim-treesitter-6b5b37cc3ee2468beef1289980102fc3c4e06e2c.zip | |
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>
Diffstat (limited to 'tests/query')
| -rw-r--r-- | tests/query/highlights/fusion/afx.fusion | 17 | ||||
| -rw-r--r-- | tests/query/highlights/fusion/basic.fusion | 1 | ||||
| -rw-r--r-- | tests/query/highlights/fusion/expressions.fusion | 8 |
3 files changed, 25 insertions, 1 deletions
diff --git a/tests/query/highlights/fusion/afx.fusion b/tests/query/highlights/fusion/afx.fusion new file mode 100644 index 000000000..4ccb8174f --- /dev/null +++ b/tests/query/highlights/fusion/afx.fusion @@ -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 --> +` diff --git a/tests/query/highlights/fusion/basic.fusion b/tests/query/highlights/fusion/basic.fusion index d2ee5a5b9..e4c4d6afc 100644 --- a/tests/query/highlights/fusion/basic.fusion +++ b/tests/query/highlights/fusion/basic.fusion @@ -1,6 +1,5 @@ include: SomeFile.fusion //<- include -// ^punctuation.delimiter // ^text.uri namespace: ns = Neos.Fusion.Space diff --git a/tests/query/highlights/fusion/expressions.fusion b/tests/query/highlights/fusion/expressions.fusion index 6646eadac..a0b82b511 100644 --- a/tests/query/highlights/fusion/expressions.fusion +++ b/tests/query/highlights/fusion/expressions.fusion @@ -23,6 +23,14 @@ propertyPath = ${property.path} // ^variable // ^variable +thisorProps = ${this.path} +// ^variable.builtin +// ^variable + +thisorProps = ${props.path} +// ^variable.builtin +// ^variable + array = ${[]} // ^punctuation.bracket |
