mirror of
https://github.com/kristoferssolo/tree-sitter-bruno.git
synced 2026-03-21 16:26:24 +00:00
chore: remove nvim support
This commit is contained in:
12
grammar.js
12
grammar.js
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file Bruno grammar for tree-sitter
|
||||
* @file Bruno grammar for tree-sitter
|
||||
* @author Kristofers Solo <dev@kristofers.xyz>
|
||||
* @license MIT
|
||||
*/
|
||||
@@ -8,13 +8,9 @@
|
||||
// @ts-check
|
||||
|
||||
module.exports = grammar({
|
||||
name: "bruno",
|
||||
name: "bruno",
|
||||
|
||||
extras: (_) => [/\s+|(\r?\n)/],
|
||||
|
||||
externals: ($) => [$.rawtext],
|
||||
|
||||
rules: {
|
||||
rules: {
|
||||
source_file: ($) =>
|
||||
repeat(
|
||||
field(
|
||||
@@ -129,5 +125,5 @@ module.exports = grammar({
|
||||
|
||||
key: (_) => /[^\s\r\n:]+/,
|
||||
value: (_) => /[^\r\n]*/,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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,35 +1,22 @@
|
||||
{
|
||||
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/config.schema.json",
|
||||
"grammars": [
|
||||
{
|
||||
"name": "bruno",
|
||||
"camelcase": "Bruno",
|
||||
"title": "Bruno",
|
||||
"scope": "source.bruno",
|
||||
"path": ".",
|
||||
"file-types": [
|
||||
"bru"
|
||||
],
|
||||
"injection-regex": "^bruno$",
|
||||
"highlights": [
|
||||
"queries/bruno/highlights.scm"
|
||||
],
|
||||
"injections": [
|
||||
"queries/bruno/injections.scm"
|
||||
],
|
||||
"tags": [
|
||||
"queries/bruno/tags.scm"
|
||||
],
|
||||
"folds": [
|
||||
"queries/bruno/folds.scm"
|
||||
],
|
||||
"indents": [
|
||||
"queries/bruno/folds.scm"
|
||||
]
|
||||
"class-name": "TreeSitterBruno"
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"description": " Bruno grammar for tree-sitter",
|
||||
"description": "Bruno grammar for tree-sitter",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Kristofers Solo",
|
||||
@@ -37,7 +24,7 @@
|
||||
}
|
||||
],
|
||||
"links": {
|
||||
"repository": "https://github.com/kristoferssolo/tree-sitter-bruno"
|
||||
"repository": "https://codeberg.org/kristoferssolo/tree-sitter-bruno"
|
||||
}
|
||||
},
|
||||
"bindings": {
|
||||
@@ -46,6 +33,8 @@
|
||||
"node": true,
|
||||
"python": true,
|
||||
"rust": true,
|
||||
"swift": true
|
||||
"swift": true,
|
||||
"zig": false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user