tree sitter comments injections (#1527)
* tree sitter comments injections * trailing newlines & julia fix * Update runtime/queries/julia/injections.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
This commit is contained in:
parent
b2c8aa1ee7
commit
fd7080498e
26 changed files with 52 additions and 6 deletions
2
runtime/queries/bash/injections.scm
Normal file
2
runtime/queries/bash/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/c-sharp/injections.scm
Normal file
2
runtime/queries/c-sharp/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/css/injections.scm
Normal file
2
runtime/queries/css/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/dart/injections.scm
Normal file
2
runtime/queries/dart/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/go/injections.scm
Normal file
2
runtime/queries/go/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/haskell/injections.scm
Normal file
2
runtime/queries/haskell/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
|
@ -1,3 +1,6 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
((script_element
|
((script_element
|
||||||
(raw_text) @injection.content)
|
(raw_text) @injection.content)
|
||||||
(#set! injection.language "javascript"))
|
(#set! injection.language "javascript"))
|
||||||
|
|
2
runtime/queries/java/injections.scm
Normal file
2
runtime/queries/java/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
|
@ -1,7 +1,5 @@
|
||||||
; TODO: re-add when markdown is added.
|
((triple_string) @injection.content
|
||||||
; ((triple_string) @injection.content
|
(#set! injection.language "markdown"))
|
||||||
; (#offset! @injection.content 0 3 0 -3)
|
|
||||||
; (#set! injection.language "markdown"))
|
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
2
runtime/queries/latex/injections.scm
Normal file
2
runtime/queries/latex/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/lua/injections.scm
Normal file
2
runtime/queries/lua/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/make/injections.scm
Normal file
2
runtime/queries/make/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/ocaml-interface/injections.scm
Normal file
2
runtime/queries/ocaml-interface/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/ocaml/injections.scm
Normal file
2
runtime/queries/ocaml/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/perl/injections.scm
Normal file
2
runtime/queries/perl/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comments) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
|
@ -1,3 +1,6 @@
|
||||||
((text) @injection.content
|
((text) @injection.content
|
||||||
(#set! injection.language "html")
|
(#set! injection.language "html")
|
||||||
(#set! injection.combined))
|
(#set! injection.combined))
|
||||||
|
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
|
|
2
runtime/queries/protobuf/injections.scm
Normal file
2
runtime/queries/protobuf/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/ruby/injections.scm
Normal file
2
runtime/queries/ruby/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
|
@ -1 +1,2 @@
|
||||||
(comment) @comment
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
|
|
2
runtime/queries/toml/injections.scm
Normal file
2
runtime/queries/toml/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
1
runtime/queries/tsx/injections.scm
Normal file
1
runtime/queries/tsx/injections.scm
Normal file
|
@ -0,0 +1 @@
|
||||||
|
; inherits: typescript
|
1
runtime/queries/typescript/injections.scm
Normal file
1
runtime/queries/typescript/injections.scm
Normal file
|
@ -0,0 +1 @@
|
||||||
|
; inherits: javascript
|
|
@ -15,3 +15,6 @@
|
||||||
((style_element
|
((style_element
|
||||||
(raw_text) @injection.content)
|
(raw_text) @injection.content)
|
||||||
(#set! injection.language "css"))
|
(#set! injection.language "css"))
|
||||||
|
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
|
|
2
runtime/queries/wgsl/injections.scm
Normal file
2
runtime/queries/wgsl/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/zig/injections.scm
Normal file
2
runtime/queries/zig/injections.scm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
([(line_comment) (doc_comment)] @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
Loading…
Add table
Reference in a new issue