1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-20 13:15:07 +01:00
helix/runtime/queries/luau/injections.scm
2025-07-26 17:25:46 -04:00

27 lines
592 B
Scheme

((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"))