We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c1d6f commit 0334d3bCopy full SHA for 0334d3b
languages/emmylua/injections.scm
@@ -1,11 +1,16 @@
1
;; Injections for Lua code
2
3
+((comment) @injection.content
4
+ (#set! injection.language "comment")
5
+)
6
+
7
;; EmmyLua Doc comments injection
8
;; Inject --- comments as emmyluadoc language
9
;; The emmyluadoc grammar now supports --- prefix, so we can directly inject
-((comment) @injection.content
- (#match? @injection.content "^---")
- (#set! injection.language "emmyluadoc"))
10
11
+(((comment) @_emmyluadoc_comment
12
+ (#match? @_emmyluadoc_comment "^---")) @injection.content
13
+ (#set! injection.language "emmyluadoc"))
14
15
;; LuaJIT FFI C code injection
16
((function_call
0 commit comments