aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-12 09:49:39 +0200
committerGitHub <noreply@github.com>2020-06-12 09:49:39 +0200
commitca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8 (patch)
tree72bac69ed7b2a67062f891fce7d28c6e8a3a5f8e /queries
parentMerge pull request #69 from theHamsta/go-highlights (diff)
parent- #76 update the predicate syntax for ruby and css (diff)
downloadnvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.tar
nvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.tar.gz
nvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.tar.bz2
nvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.tar.lz
nvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.tar.xz
nvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.tar.zst
nvim-treesitter-ca438b7b2ec01e737e2ce3ed2f684f2ca4e87ef8.zip
Merge pull request #77 from TravonteD/76-syntax-update
- #76 update the predicate syntax for ruby and css
Diffstat (limited to 'queries')
-rw-r--r--queries/css/highlights.scm4
-rw-r--r--queries/ruby/highlights.scm13
2 files changed, 9 insertions, 8 deletions
diff --git a/queries/css/highlights.scm b/queries/css/highlights.scm
index 3fc468ca3..72009e765 100644
--- a/queries/css/highlights.scm
+++ b/queries/css/highlights.scm
@@ -48,9 +48,9 @@
((property_name) @type
- (match? @type "^--"))
+ (#match? @type "^--"))
((plain_value) @type
- (match? @type "^--"))
+ (#match? @type "^--"))
(string_value) @string
(color_value) @string
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