mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
feat(wing): add parser (#5021)
Co-authored-by: Christian Clason <c.clason@uni-graz.at> Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
This commit is contained in:
parent
99a7e8d268
commit
f460cc8ee7
8 changed files with 147 additions and 0 deletions
19
tests/query/highlights/wing/class.w
Normal file
19
tests/query/highlights/wing/class.w
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
bring cloud;
|
||||
// <- keyword
|
||||
|
||||
class Foo {
|
||||
// <- keyword
|
||||
// ^ variable
|
||||
// ^ punctuation.bracket
|
||||
name: str;
|
||||
//^ field
|
||||
// ^ type.builtin
|
||||
// ^ punctuation.delimiter
|
||||
init(name: str) {
|
||||
//^ keyword
|
||||
// ^ variable
|
||||
this.name = name;
|
||||
// ^ punctuation.delimiter
|
||||
// ^ operator
|
||||
}
|
||||
}
|
||||
4
tests/query/highlights/wing/nested_method.w
Normal file
4
tests/query/highlights/wing/nested_method.w
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
test1.test2.test3();
|
||||
// <- variable
|
||||
// ^ property
|
||||
// ^ method.call
|
||||
Loading…
Add table
Add a link
Reference in a new issue