mirror of
https://github.com/kristoferssolo/tree-sitter-bruno.git
synced 2026-02-04 06:22:07 +00:00
Initial commit
This commit is contained in:
18
queries/highlights.scm
Normal file
18
queries/highlights.scm
Normal file
@@ -0,0 +1,18 @@
|
||||
(keyword) @keyword
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
":" @punctuation.delimiter
|
||||
|
||||
|
||||
(key) @type
|
||||
[
|
||||
(value)
|
||||
(array_value)
|
||||
] @string
|
||||
|
||||
(ERROR) @error
|
||||
59
queries/injections.scm
Normal file
59
queries/injections.scm
Normal file
@@ -0,0 +1,59 @@
|
||||
((body
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "json"))
|
||||
|
||||
((bodyjson
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "json"))
|
||||
|
||||
((bodyxml
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "xml"))
|
||||
|
||||
((bodysparql
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "sparql"))
|
||||
|
||||
((bodygraphql
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "graphql"))
|
||||
|
||||
((bodygraphqlvars
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "json"))
|
||||
|
||||
((scriptres
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((scriptreq
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((tests
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((docs
|
||||
(keyword)
|
||||
(textblock
|
||||
(rawtext) @injection.content))
|
||||
(#set! injection.language "markdown"))
|
||||
Reference in New Issue
Block a user