Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gabydd: reverse query precedence order #11197

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ language-servers = [ "docker-langserver" ]

[[grammar]]
name = "dockerfile"
source = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "8ee3a0f7587b2bd8c45c8cb7d28bd414604aec62" }
source = { git = "https://github.com/camdencheek/tree-sitter-dockerfile", rev = "868e44ce378deb68aac902a9db68ff82d2299dd0" }

[[language]]
name = "docker-compose"
Expand Down Expand Up @@ -1864,7 +1864,7 @@ indent = { tab-width = 4, unit = " " }

[[grammar]]
name = "ron"
source = { git = "https://github.com/zee-editor/tree-sitter-ron", rev = "7762d709a0f7c1f9e269d0125a2e8a7a69006146" }
source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-ron", rev = "78938553b93075e638035f624973083451b29055" }

[[language]]
name = "robot"
Expand Down
38 changes: 19 additions & 19 deletions runtime/queries/zig/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
(line_comment)
] @comment.line

[
variable: (IDENTIFIER)
variable_type_function: (IDENTIFIER)
] @variable

parameter: (IDENTIFIER) @variable.parameter

[
field_member: (IDENTIFIER)
field_access: (IDENTIFIER)
] @variable.other.member

;; assume TitleCase is a type
(
[
Expand Down Expand Up @@ -36,6 +48,13 @@
(#match? @constant "^[A-Z][A-Z_0-9]+$")
)

[
function_call: (IDENTIFIER)
function: (IDENTIFIER)
] @function

exception: "!" @keyword.control.exception

;; _
(
(IDENTIFIER) @variable.builtin
Expand All @@ -45,25 +64,6 @@
;; C Pointers [*c]T
(PtrTypeStart "c" @variable.builtin)

[
variable: (IDENTIFIER)
variable_type_function: (IDENTIFIER)
] @variable

parameter: (IDENTIFIER) @variable.parameter

[
field_member: (IDENTIFIER)
field_access: (IDENTIFIER)
] @variable.other.member

[
function_call: (IDENTIFIER)
function: (IDENTIFIER)
] @function

exception: "!" @keyword.control.exception

field_constant: (IDENTIFIER) @constant

(BUILTINIDENTIFIER) @function.builtin
Expand Down
Loading