Highlight comments in c, cpp, cmake and llvm (#1309)
Also, reuse the c injections in glsl
This commit is contained in:
parent
e72786df8e
commit
23091c9d29
5 changed files with 11 additions and 3 deletions
2
runtime/queries/c/injections.scm
Normal file
2
runtime/queries/c/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
4
runtime/queries/cmake/injections.scm
Normal file
4
runtime/queries/cmake/injections.scm
Normal file
|
@ -0,0 +1,4 @@
|
|||
((line_comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
((bracket_comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
1
runtime/queries/cpp/injections.scm
Normal file
1
runtime/queries/cpp/injections.scm
Normal file
|
@ -0,0 +1 @@
|
|||
; inherits: c
|
|
@ -1,5 +1,4 @@
|
|||
; inherits: c
|
||||
|
||||
((preproc_arg) @injection.content
|
||||
(#set! injection.language "glsl"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
|
2
runtime/queries/llvm/injections.scm
Normal file
2
runtime/queries/llvm/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in a new issue