Skip to content

Commit 8e192b8

Browse files
authored
Merge pull request #111 from microsoft/joh/limited-deer
chore - more anycode fixes
2 parents eac045d + e04be90 commit 8e192b8

21 files changed

+173
-296
lines changed

anycode-c-sharp/package-lock.json

Lines changed: 48 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

anycode-c-sharp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "anycode-c-sharp",
55
"description": "C# for Anycode",
66
"license": "MIT",
7-
"version": "0.0.7",
7+
"version": "0.0.8",
88
"preview": true,
99
"repository": {
1010
"url": "https://github.com/microsoft/vscode-anycode"
@@ -42,6 +42,6 @@
4242
"devDependencies": {
4343
"@playwright/test": "^1.14.1",
4444
"tree-sitter-cli": "^0.20.8",
45-
"tree-sitter-c-sharp": "^0.20.0"
45+
"tree-sitter-c-sharp": "^0.23.1"
4646
}
4747
}

anycode-c-sharp/queries/locals.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
(constructor_declaration) @scope
55
(method_declaration) @scope
66
(if_statement [consequence: (_) @scope alternative: (_) @scope])
7-
(for_each_statement) @scope
7+
(foreach_statement) @scope
88
(for_statement) @scope
99
(do_statement) @scope
1010
(while_statement) @scope
@@ -18,7 +18,7 @@
1818
(parameter name: (identifier) @local)
1919
(variable_declarator (identifier) @local)
2020
(type_parameter (identifier) @local)
21-
(for_each_statement left: (identifier) @local)
21+
(foreach_statement left: (identifier) @local)
2222
(query_expression [
2323
(from_clause . (identifier) @local)
2424
])

anycode-c-sharp/queries/outline.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
)
6060
) @event
6161

62-
(global_attribute_list
62+
(attribute_list
6363
(attribute
6464
(identifier) @constant.name
6565
) @constant

anycode-c-sharp/queries/references.scm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
(object_creation_expression
22
type: (identifier) @ref.type)
3-
(type_parameter_constraints_clause
4-
target: (identifier) @ref.type)
5-
(type_constraint
6-
type: (identifier) @ref.type)
3+
(type_parameter
4+
name: (identifier) @ref.type)
75
(variable_declaration
86
type: (identifier) @ref.type)
97
(member_access_expression

anycode-go/fixtures/outline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
ErrNoTLS = errors.New("TLS requested but server does not support TLS")
2424
// ^
2525
)
26-
// ### multiple vars, one line
26+
// ### /SKIP/ multiple vars, one line
2727
var c, python, java bool
2828
// ^
2929
// ^

anycode-go/package-lock.json

Lines changed: 48 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

anycode-go/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "anycode-go",
55
"description": "Go for Anycode",
66
"license": "MIT",
7-
"version": "0.0.7",
7+
"version": "0.0.8",
88
"preview": true,
99
"repository": {
1010
"url": "https://github.com/microsoft/vscode-anycode"
@@ -42,6 +42,6 @@
4242
"devDependencies": {
4343
"@playwright/test": "^1.14.1",
4444
"tree-sitter-cli": "^0.20.8",
45-
"tree-sitter-go": "^0.20.0"
45+
"tree-sitter-go": "^0.23.4"
4646
}
4747
}

anycode-go/queries/outline.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
(field_declaration (field_identifier) @field @field.name)
33

4-
(method_spec
5-
name: (field_identifier) @method.name
4+
(var_spec
5+
name: (identifier) @method.name
66
) @method
77

88
(type_alias

0 commit comments

Comments
 (0)