From 374966b25c9bcbe29944267128cb78bf857e189a Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sat, 23 Dec 2023 21:00:32 -0800 Subject: [PATCH] fixup(luau): align `@string.regex` to the injections (#5829) --- queries/luau/highlights.scm | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/queries/luau/highlights.scm b/queries/luau/highlights.scm index a175276a7..4cd0b443c 100644 --- a/queries/luau/highlights.scm +++ b/queries/luau/highlights.scm @@ -251,24 +251,12 @@ (function_call (dot_index_expression field: (identifier) @_method - (#any-of? @_method "find" "format" "match")) - arguments: (arguments (_) . (string content: _ @string.regex))) - -(function_call - (dot_index_expression - field: (identifier) @_method - (#any-of? @_method "gmatch" "gsub")) - arguments: (arguments (_) (string content: _ @string.regex))) + (#any-of? @_method "find" "format" "match" "gmatch" "gsub")) + arguments: (arguments . (_) . (string content: _ @string.regex))) ; ("123"):match("%d+") (function_call (method_index_expression method: (identifier) @_method - (#any-of? @_method "find" "format" "match")) + (#any-of? @_method "find" "format" "match" "gmatch" "gsub")) arguments: (arguments . (string content: _ @string.regex))) - -(function_call - (method_index_expression - method: (identifier) @_method - (#any-of? @_method "gmatch" "gsub")) - arguments: (arguments (string content: _ @string.regex)))