mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-09 21:56:34 +03:00
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
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
|
((preproc_arg) @injection.content
|
||||||
(#set! injection.language "glsl"))
|
(#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 New Issue
Block a user