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" "revision": "a041228ae64632f59b9bd37346a0dbcb7817f36b"
}, },
"wing": { "wing": {
"revision": "238200d172538d5ff1228a929ea543465acfc410" "revision": "d6af9180bfbd82b01980e7e5307d77ed3939e2a7"
}, },
"xcompose": { "xcompose": {
"revision": "01344fed31a3cd37a63f03357ec80cbc592a93b5" "revision": "01344fed31a3cd37a63f03357ec80cbc592a93b5"

View file

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

View file

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

View file

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

View file

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