Merge pull request #77 from TravonteD/76-syntax-update

- #76 update the predicate syntax for ruby and css
This commit is contained in:
Thomas Vigouroux 2020-06-12 09:49:39 +02:00 committed by GitHub
commit ca438b7b2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -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

View file

@ -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