mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04: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
|
||||
(#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