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
(comment) @comment @spell
(ingredient
"@" @punctuation.delimiter
(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
(language) @injection.language
(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
(code
(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
(command) @_command
(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
(Gap) @comment
(lineComment) @comment
(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
(#set! injection.language "html")
(#set! injection.combined))

View file

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

View file

@ -1,3 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
(exec
(string) @injection.content
(#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
(regex_literal
(_) @injection.content

View file

@ -104,7 +104,7 @@
(bool) @boolean
(comment) @comment
(comment) @comment @spell
(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
(#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
(#set! injection.language "regex")
(#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
(#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
(comment) @comment
(comment) @comment @spell
(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
(#set! injection.language "html")
(#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"))