Highlight a broader range of zig functions
This commit is contained in:
parent
ebbfff5ce8
commit
742329ee8f
1 changed files with 3 additions and 7 deletions
|
@ -26,14 +26,10 @@ parameter: (IDENTIFIER) @parameter
|
||||||
(#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)*$")
|
(#match? @type "^[A-Z]([a-z]+[A-Za-z0-9]*)*$")
|
||||||
)
|
)
|
||||||
|
|
||||||
;; assume camelCase is a function
|
|
||||||
(
|
(
|
||||||
[
|
(_
|
||||||
variable_type_function: (IDENTIFIER)
|
variable_type_function: (IDENTIFIER) @function
|
||||||
field_access: (IDENTIFIER)
|
(FnCallArguments))
|
||||||
parameter: (IDENTIFIER)
|
|
||||||
] @function
|
|
||||||
(#match? @function "^[a-z]+([A-Z][a-z0-9]+)$")
|
|
||||||
)
|
)
|
||||||
|
|
||||||
;; assume all CAPS_1 is a constant
|
;; assume all CAPS_1 is a constant
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue