diff options
Diffstat (limited to 'queries/lua')
| -rw-r--r-- | queries/lua/highlights.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 1af8e9aec..2f12d3ce2 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -247,3 +247,23 @@ (string) @string (escape_sequence) @string.escape + +; string.match("123", "%d+") +(function_call + (dot_index_expression + field: (identifier) @_method + (#any-of? @_method "find" "match" "gmatch" "gsub")) + arguments: (arguments + . (_) + . + (string + content: (string_content) @string.regex))) + +;("123"):match("%d+") +(function_call + (method_index_expression + method: (identifier) @_method + (#any-of? @_method "find" "match" "gmatch" "gsub")) + arguments: (arguments + . (string + content: (string_content) @string.regex))) |
