diff options
| author | TravonteD <tman1300@aol.com> | 2020-06-07 18:15:02 -0400 |
|---|---|---|
| committer | TravonteD <tman1300@aol.com> | 2020-06-11 10:38:19 -0400 |
| commit | 37f9866f6685a3a62536f857348202b280e28dbe (patch) | |
| tree | 72bac69ed7b2a67062f891fce7d28c6e8a3a5f8e /queries/ruby | |
| parent | Merge pull request #69 from theHamsta/go-highlights (diff) | |
| download | nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.tar nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.tar.gz nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.tar.bz2 nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.tar.lz nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.tar.xz nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.tar.zst nvim-treesitter-37f9866f6685a3a62536f857348202b280e28dbe.zip | |
- #76 update the predicate syntax for ruby and css
Diffstat (limited to 'queries/ruby')
| -rw-r--r-- | queries/ruby/highlights.scm | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index da4eac9b9..9e5852cdf 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -29,12 +29,12 @@ "yield" @keyword ((identifier) @keyword - (match? @keyword "^(private|protected|public)$")) + (#match? @keyword "^(private|protected|public)$")) ; Function calls ((identifier) @function - (eq? @function "require")) + (#eq? @function "require")) "defined?" @function @@ -67,10 +67,10 @@ (instance_variable) @label ((identifier) @constant.builtin - (match? @constant.builtin "^__(FILE|LINE|ENCODING)__$")) + (#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$")) ((constant) @constant.macro - (match? @constant.macro "^[A-Z\\d_]+$")) + (#match? @constant.macro "^[A-Z\\d_]+$")) (constant) @constant @@ -87,8 +87,9 @@ (block_parameter (identifier) @parameter) (keyword_parameter (identifier) @parameter) -((identifier) @function - (is-not? local)) +; TODO: Re-enable this once it is supported +; ((identifier) @function +; (#is-not? local)) ; Literals |
