feat: more comment injections

This commit is contained in:
Riley Bruins 2024-06-07 21:33:49 -07:00 committed by Christian Clason
parent 8dd40c7609
commit 9d68e876cc
56 changed files with 157 additions and 3 deletions

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(line_comment)
(block_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((junk) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(bracket_comment)
(line_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(comment)
(block_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -1,5 +1,7 @@
(metadata) @comment (metadata) @comment
(comment) @comment @spell
(ingredient (ingredient
"@" @punctuation.delimiter "@" @punctuation.delimiter
(name)? @string.special.symbol (name)? @string.special.symbol

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
(code_block (code_block
(language) @injection.language (language) @injection.language
(code) @injection.content) (code) @injection.content)

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
; Pass code blocks to Cpp highlighter ; Pass code blocks to Cpp highlighter
(code (code
(code_body) @injection.content (code_body) @injection.content

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((fsh_comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(comment)
(afx_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
((operation ((operation
(command) @_command (command) @_command
(message) @injection.content) (message) @injection.content)

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment_statement) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(comment)
(heredoc)
] @injection.content
(#set! injection.language "comment"))

View file

@ -20,7 +20,7 @@
(aura) @constant.builtin (aura) @constant.builtin
(Gap) @comment (lineComment) @comment
(boolean) @constant.builtin (boolean) @constant.builtin

View file

@ -0,0 +1,2 @@
((lineComment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,9 @@
([
(paired_comment)
(unpaired_comment)
] @injection.content
(#set! injection.language "comment"))
((content) @injection.content ((content) @injection.content
(#set! injection.language "html") (#set! injection.language "html")
(#set! injection.combined)) (#set! injection.combined))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
; injections.scm ; injections.scm
((json_value) @injection.content ((json_value) @injection.content
(#set! injection.language "json")) (#set! injection.language "json"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
(exec (exec
(string) @injection.content (string) @injection.content
(#set! injection.language "bash")) (#set! injection.language "bash"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
; The right side of =~ literals ; The right side of =~ literals
(regex_literal (regex_literal
(_) @injection.content (_) @injection.content

View file

@ -104,7 +104,7 @@
(bool) @boolean (bool) @boolean
(comment) @comment (comment) @comment @spell
(regexp) @string.regexp (regexp) @string.regexp

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,2 +1,9 @@
([
(comment)
(line_comment)
(ocaml_comment)
] @injection.content
(#set! injection.language "comment"))
((ocaml) @injection.content ((ocaml) @injection.content
(#set! injection.language "ocaml")) (#set! injection.language "ocaml"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(comment)
(developer_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
((label_value) @injection.content ((label_value) @injection.content
(#set! injection.language "regex") (#set! injection.language "regex")
(#offset! @injection.content 0 1 0 -1)) (#offset! @injection.content 0 1 0 -1))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
((javascript) @injection.content ((javascript) @injection.content
(#set! injection.language "javascript")) (#set! injection.language "javascript"))

View file

@ -0,0 +1,5 @@
([
(comment)
(extra_text)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((single_line_comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(comment)
(documentation_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(comment)
(multiline_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -2,7 +2,7 @@
(field_name) @variable.member (field_name) @variable.member
(comment) @comment (comment) @comment @spell
(number) @number (number) @number

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
((content) @injection.content ((content) @injection.content
(#set! injection.language "html") (#set! injection.language "html")
(#set! injection.combined)) (#set! injection.combined))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,5 @@
([
(line_comment)
(block_comment)
] @injection.content
(#set! injection.language "comment"))

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))