on master help sign in
Highlight comments in c, cpp, cmake and llvm (#1309)
23091c9Sebastian Neubauer
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+
1((preproc_arg) @injection.content
3((preproc_arg) @injection.content
2 (#set! injection.language "glsl"))
4 (#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"))