mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
parsers: add blueprint parser
This commit is contained in:
parent
c42812ecc7
commit
3c2d63c118
2 changed files with 66 additions and 0 deletions
|
|
@ -1224,6 +1224,15 @@ list.gitattributes = {
|
||||||
experimental = true,
|
experimental = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.blueprint = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://gitlab.com/gabmus/tree-sitter-blueprint.git",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@gabmus" },
|
||||||
|
experimental = true,
|
||||||
|
}
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
list = list,
|
list = list,
|
||||||
filetype_to_parsername = filetype_to_parsername,
|
filetype_to_parsername = filetype_to_parsername,
|
||||||
|
|
|
||||||
57
queries/blueprint/highlights.scm
Normal file
57
queries/blueprint/highlights.scm
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
(object_id) @variable
|
||||||
|
|
||||||
|
(string) @string
|
||||||
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
|
(constant) @constant.builtin
|
||||||
|
|
||||||
|
(boolean) @boolean
|
||||||
|
|
||||||
|
(using) @include
|
||||||
|
|
||||||
|
(template) @keyword
|
||||||
|
|
||||||
|
(decorator) @attribute
|
||||||
|
|
||||||
|
(property_definition (property_name) @property)
|
||||||
|
|
||||||
|
(object) @type
|
||||||
|
|
||||||
|
(signal_binding (signal_name) @function.builtin)
|
||||||
|
(signal_binding (function (identifier)) @function)
|
||||||
|
(signal_binding "swapped" @keyword)
|
||||||
|
|
||||||
|
(styles_list "styles" @function.macro)
|
||||||
|
(layout_definition "layout" @function.macro)
|
||||||
|
|
||||||
|
(gettext_string "_" @function.builtin)
|
||||||
|
|
||||||
|
(menu_definition "menu" @keyword)
|
||||||
|
(menu_section "section" @keyword)
|
||||||
|
(menu_item "item" @function.macro)
|
||||||
|
|
||||||
|
(template_definition (template_name_qualifier) @type.qualifier)
|
||||||
|
|
||||||
|
(import_statement (gobject_library) @namespace)
|
||||||
|
|
||||||
|
(import_statement (version_number) @float)
|
||||||
|
|
||||||
|
(float) @float
|
||||||
|
(number) @number
|
||||||
|
|
||||||
|
[
|
||||||
|
";"
|
||||||
|
"."
|
||||||
|
","
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
Loading…
Add table
Add a link
Reference in a new issue