mirror of
https://github.com/kristoferssolo/tree-sitter-bruno.git
synced 2026-03-22 00:36:24 +00:00
chore: remove nvim support
This commit is contained in:
@@ -10,10 +10,6 @@
|
|||||||
module.exports = grammar({
|
module.exports = grammar({
|
||||||
name: "bruno",
|
name: "bruno",
|
||||||
|
|
||||||
extras: (_) => [/\s+|(\r?\n)/],
|
|
||||||
|
|
||||||
externals: ($) => [$.rawtext],
|
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
source_file: ($) =>
|
source_file: ($) =>
|
||||||
repeat(
|
repeat(
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
vim.filetype.add({
|
|
||||||
extension = { bru = "bruno" },
|
|
||||||
})
|
|
||||||
|
|
||||||
require("nvim-treesitter.parsers").get_parser_configs().bruno = {
|
|
||||||
install_info = {
|
|
||||||
url = "https://github.com/kristoferssolo/tree-sitter-bruno",
|
|
||||||
files = { "src/parser.c", "src/scanner.c" },
|
|
||||||
branch = "main",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
(dictionary) @fold
|
|
||||||
(array) @fold
|
|
||||||
(textblock) @fold
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
(keyword) @keyword
|
|
||||||
[
|
|
||||||
"{"
|
|
||||||
"}"
|
|
||||||
"["
|
|
||||||
"]"
|
|
||||||
] @punctuation.bracket
|
|
||||||
":" @punctuation.delimiter
|
|
||||||
|
|
||||||
|
|
||||||
(key) @type
|
|
||||||
[
|
|
||||||
(value)
|
|
||||||
(array_value)
|
|
||||||
] @string
|
|
||||||
|
|
||||||
(ERROR) @error
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
(dictionary) @indent.begin
|
|
||||||
(dictionary
|
|
||||||
"}" @indent.end)
|
|
||||||
"}" @indent.branch
|
|
||||||
|
|
||||||
(textblock) @indent.begin
|
|
||||||
(textblock
|
|
||||||
"}" @indent.end)
|
|
||||||
"}" @indent.branch
|
|
||||||
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
((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"))
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
(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
|
|
||||||
@@ -1,29 +1,16 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/config.schema.json",
|
||||||
"grammars": [
|
"grammars": [
|
||||||
{
|
{
|
||||||
"name": "bruno",
|
"name": "bruno",
|
||||||
"camelcase": "Bruno",
|
"camelcase": "Bruno",
|
||||||
|
"title": "Bruno",
|
||||||
"scope": "source.bruno",
|
"scope": "source.bruno",
|
||||||
"path": ".",
|
|
||||||
"file-types": [
|
"file-types": [
|
||||||
"bru"
|
"bru"
|
||||||
],
|
],
|
||||||
"injection-regex": "^bruno$",
|
"injection-regex": "^bruno$",
|
||||||
"highlights": [
|
"class-name": "TreeSitterBruno"
|
||||||
"queries/bruno/highlights.scm"
|
|
||||||
],
|
|
||||||
"injections": [
|
|
||||||
"queries/bruno/injections.scm"
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"queries/bruno/tags.scm"
|
|
||||||
],
|
|
||||||
"folds": [
|
|
||||||
"queries/bruno/folds.scm"
|
|
||||||
],
|
|
||||||
"indents": [
|
|
||||||
"queries/bruno/folds.scm"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
@@ -37,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"links": {
|
"links": {
|
||||||
"repository": "https://github.com/kristoferssolo/tree-sitter-bruno"
|
"repository": "https://codeberg.org/kristoferssolo/tree-sitter-bruno"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bindings": {
|
"bindings": {
|
||||||
@@ -46,6 +33,8 @@
|
|||||||
"node": true,
|
"node": true,
|
||||||
"python": true,
|
"python": true,
|
||||||
"rust": true,
|
"rust": true,
|
||||||
"swift": true
|
"swift": true,
|
||||||
|
"zig": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user