Highlight comments in c, cpp, cmake and llvm (#1309)
Also, reuse the c injections in glsl
commit23091c9d29f575379d01b7011890da044a302433
authorSebastian Neubauer <Flakebi@users.noreply.github.com>
dateMon 20 Dec 2021, 03:42 (5 years ago)
parente72786d
runtime/queries/c/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/cmake/injections.scmnew file+4
@@ -0,0 +1,4 @@
1+((line_comment) @injection.content
2+ (#set! injection.language "comment"))
3+((bracket_comment) @injection.content
4+ (#set! injection.language "comment"))
runtime/queries/cpp/injections.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: c
runtime/queries/glsl/injections.scm+2−3
@@ -1,5 +1,4 @@
1+; inherits: c
2+
13((preproc_arg) @injection.content
24 (#set! injection.language "glsl"))
3−
4−((comment) @injection.content
5− (#set! injection.language "comment"))
runtime/queries/llvm/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))