mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
Merge pull request #77 from TravonteD/76-syntax-update
- #76 update the predicate syntax for ruby and css
This commit is contained in:
commit
ca438b7b2e
2 changed files with 9 additions and 8 deletions
|
|
@ -48,9 +48,9 @@
|
||||||
|
|
||||||
|
|
||||||
((property_name) @type
|
((property_name) @type
|
||||||
(match? @type "^--"))
|
(#match? @type "^--"))
|
||||||
((plain_value) @type
|
((plain_value) @type
|
||||||
(match? @type "^--"))
|
(#match? @type "^--"))
|
||||||
|
|
||||||
(string_value) @string
|
(string_value) @string
|
||||||
(color_value) @string
|
(color_value) @string
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,12 @@
|
||||||
"yield" @keyword
|
"yield" @keyword
|
||||||
|
|
||||||
((identifier) @keyword
|
((identifier) @keyword
|
||||||
(match? @keyword "^(private|protected|public)$"))
|
(#match? @keyword "^(private|protected|public)$"))
|
||||||
|
|
||||||
; Function calls
|
; Function calls
|
||||||
|
|
||||||
((identifier) @function
|
((identifier) @function
|
||||||
(eq? @function "require"))
|
(#eq? @function "require"))
|
||||||
|
|
||||||
"defined?" @function
|
"defined?" @function
|
||||||
|
|
||||||
|
|
@ -67,10 +67,10 @@
|
||||||
(instance_variable) @label
|
(instance_variable) @label
|
||||||
|
|
||||||
((identifier) @constant.builtin
|
((identifier) @constant.builtin
|
||||||
(match? @constant.builtin "^__(FILE|LINE|ENCODING)__$"))
|
(#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$"))
|
||||||
|
|
||||||
((constant) @constant.macro
|
((constant) @constant.macro
|
||||||
(match? @constant.macro "^[A-Z\\d_]+$"))
|
(#match? @constant.macro "^[A-Z\\d_]+$"))
|
||||||
|
|
||||||
(constant) @constant
|
(constant) @constant
|
||||||
|
|
||||||
|
|
@ -87,8 +87,9 @@
|
||||||
(block_parameter (identifier) @parameter)
|
(block_parameter (identifier) @parameter)
|
||||||
(keyword_parameter (identifier) @parameter)
|
(keyword_parameter (identifier) @parameter)
|
||||||
|
|
||||||
((identifier) @function
|
; TODO: Re-enable this once it is supported
|
||||||
(is-not? local))
|
; ((identifier) @function
|
||||||
|
; (#is-not? local))
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue