mirror of
https://github.com/kristoferssolo/tree-sitter-bruno.git
synced 2026-02-04 06:22:07 +00:00
fix(neovim): file extension
This commit is contained in:
3
queries/bruno/folds.scm
Normal file
3
queries/bruno/folds.scm
Normal file
@@ -0,0 +1,3 @@
|
||||
(dictionary) @fold
|
||||
(array) @fold
|
||||
(textblock) @fold
|
||||
17
queries/bruno/highlights.scm
Normal file
17
queries/bruno/highlights.scm
Normal file
@@ -0,0 +1,17 @@
|
||||
(keyword) @keyword
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
":" @punctuation.delimiter
|
||||
|
||||
|
||||
(key) @type
|
||||
[
|
||||
(value)
|
||||
(array_value)
|
||||
] @string
|
||||
|
||||
(ERROR) @error
|
||||
59
queries/bruno/injections.scm
Normal file
59
queries/bruno/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"))
|
||||
12
queries/bruno/tags.scm
Normal file
12
queries/bruno/tags.scm
Normal file
@@ -0,0 +1,12 @@
|
||||
(source_file) @tag.root
|
||||
|
||||
(meta) @tag.meta
|
||||
(http) @tag.http
|
||||
(query) @tag.query
|
||||
(headers) @tag.headers
|
||||
(auths) @tag.auths
|
||||
(bodies) @tag.bodies
|
||||
(varsandassert) @tag.varsandassert
|
||||
(script) @tag.script
|
||||
(tests) @tag.tests
|
||||
(docs) @tag.docs
|
||||
Reference in New Issue
Block a user