1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
((comment) @injection.content (#set! injection.language "comment")) ; string.match("123", "%d+") (call_stmt invoked: (var table_name: (name) (key field_name: (name) @_method)) (arglist . (_) . (string) @injection.content) (#any-of? @_method "find" "format" "match" "gmatch" "gsub") (#set! injection.language "luap")) ; ("123"):match("%d+") (call_stmt method_table: (_) method_name: (name) @_method (arglist . (string) @injection.content) (#any-of? @_method "find" "format" "match" "gmatch" "gsub") (#set! injection.language "luap"))