fix(wing): update parser and queries, add maintainer (#5671)

This commit is contained in:
Mark McCulloh 2023-11-13 14:04:27 -05:00 committed by GitHub
parent 075a64addc
commit 17e77749c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 8 deletions

View file

@ -696,7 +696,7 @@
"revision": "a041228ae64632f59b9bd37346a0dbcb7817f36b"
},
"wing": {
"revision": "238200d172538d5ff1228a929ea543465acfc410"
"revision": "d6af9180bfbd82b01980e7e5307d77ed3939e2a7"
},
"xcompose": {
"revision": "01344fed31a3cd37a63f03357ec80cbc592a93b5"

View file

@ -2042,7 +2042,7 @@ list.wing = {
location = "libs/tree-sitter-wing",
requires_generate_from_grammar = true,
},
maintainers = { "@gshpychka" },
maintainers = { "@gshpychka", "@MarkMcCulloh" },
experimental = true,
}

View file

@ -12,5 +12,4 @@
(enum_definition)
(try_catch_statement)
(method_definition)
(inflight_method_definition)
] @fold

View file

@ -11,8 +11,6 @@
name: (identifier) @type)
(method_definition
name: (identifier) @method)
(inflight_method_definition
name: (identifier) @method)
; Functions
@ -78,7 +76,6 @@
"for"
"if"
"in"
"init"
"let"
"new"
"return"

View file

@ -9,9 +9,9 @@ class Foo {
//^ field
// ^ type.builtin
// ^ punctuation.delimiter
init(name: str) {
new(name: str) {
//^ keyword
// ^ variable
// ^ variable
this.name = name;
// ^ punctuation.delimiter
// ^ operator