From 37f9866f6685a3a62536f857348202b280e28dbe Mon Sep 17 00:00:00 2001 From: TravonteD Date: Sun, 7 Jun 2020 18:15:02 -0400 Subject: - #76 update the predicate syntax for ruby and css --- queries/ruby/highlights.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'queries/ruby/highlights.scm') 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 -- cgit v1.2.3-70-g09d2