mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
4
runtime/queries/turtle/folds.scm
Normal file
4
runtime/queries/turtle/folds.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
(statement)
|
||||
(blank_node_property_list)
|
||||
] @fold
|
||||
58
runtime/queries/turtle/highlights.scm
Normal file
58
runtime/queries/turtle/highlights.scm
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
(string) @string
|
||||
|
||||
(lang_tag) @type
|
||||
|
||||
[
|
||||
"_:"
|
||||
"<"
|
||||
">"
|
||||
(namespace)
|
||||
] @namespace
|
||||
|
||||
[
|
||||
(iri_reference)
|
||||
(prefixed_name)
|
||||
] @variable
|
||||
|
||||
(blank_node_label) @variable
|
||||
|
||||
"a" @variable.builtin
|
||||
|
||||
(integer) @number
|
||||
|
||||
[
|
||||
(decimal)
|
||||
(double)
|
||||
] @float
|
||||
|
||||
(boolean_literal) @boolean
|
||||
|
||||
[
|
||||
"BASE"
|
||||
"PREFIX"
|
||||
"@prefix"
|
||||
"@base"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"."
|
||||
","
|
||||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
(anon)
|
||||
] @punctuation.bracket
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(echar) @string.escape
|
||||
|
||||
|
||||
(rdf_literal
|
||||
"^^" @type
|
||||
datatype: (_ ["<" ">" (namespace)] @type) @type)
|
||||
10
runtime/queries/turtle/indents.scm
Normal file
10
runtime/queries/turtle/indents.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
(statement)
|
||||
(blank_node_property_list)
|
||||
(collection)
|
||||
] @indent.begin
|
||||
[
|
||||
"]"
|
||||
")"
|
||||
] @indent.branch
|
||||
|
||||
2
runtime/queries/turtle/injections.scm
Normal file
2
runtime/queries/turtle/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
12
runtime/queries/turtle/locals.scm
Normal file
12
runtime/queries/turtle/locals.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(turtle_doc) @scope
|
||||
|
||||
(subject
|
||||
[
|
||||
(prefixed_name)
|
||||
(iri_reference)
|
||||
] @definition.var)
|
||||
|
||||
[
|
||||
(prefixed_name)
|
||||
(iri_reference)
|
||||
] @reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue