on master help sign in
tree sitter comments injections (#1527)
fd70804Mathis Brossier
runtime/queries/bash/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/c-sharp/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/css/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/dart/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/go/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/haskell/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/html/injections.scm+3
@@ -1,3 +1,6 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
3+
1((script_element
4((script_element
2 (raw_text) @injection.content)
5 (raw_text) @injection.content)
3 (#set! injection.language "javascript"))
6 (#set! injection.language "javascript"))
runtime/queries/java/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/julia/injections.scm+2−4
@@ -1,7 +1,5 @@
1−; TODO: re-add when markdown is added.
2−; ((triple_string) @injection.content
1+((triple_string) @injection.content
3−; (#offset! @injection.content 0 3 0 -3)
4−; (#set! injection.language "markdown"))
2+ (#set! injection.language "markdown"))
5
3
6((comment) @injection.content
4((comment) @injection.content
7 (#set! injection.language "comment"))
5 (#set! injection.language "comment"))
runtime/queries/latex/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/lua/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/make/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/ocaml-interface/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/ocaml/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/perl/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comments) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/php/injections.scm+3
@@ -1,3 +1,6 @@
1((text) @injection.content
1((text) @injection.content
2 (#set! injection.language "html")
2 (#set! injection.language "html")
3 (#set! injection.combined))
3 (#set! injection.combined))
4+
5+((comment) @injection.content
6+ (#set! injection.language "comment"))
runtime/queries/protobuf/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/ruby/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/scala/injections.scm+2−1
@@ -1 +1,2 @@
1−(comment) @comment
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/toml/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/tsx/injections.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: typescript
runtime/queries/typescript/injections.scmnew file+1
@@ -0,0 +1 @@
1+; inherits: javascript
runtime/queries/vue/injections.scm+3
@@ -15,3 +15,6 @@
15((style_element
15((style_element
16 (raw_text) @injection.content)
16 (raw_text) @injection.content)
17 (#set! injection.language "css"))
17 (#set! injection.language "css"))
18+
19+((comment) @injection.content
20+ (#set! injection.language "comment"))
runtime/queries/wgsl/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/yaml/injections.scm+1−1
@@ -1,2 +1,2 @@
1−((comment) @injection.content
1+((comment) @injection.content
2 (#set! injection.language "comment"))
2 (#set! injection.language "comment"))
runtime/queries/zig/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+([(line_comment) (doc_comment)] @injection.content
2+ (#set! injection.language "comment"))