mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -26,7 +26,6 @@
|
|||
"a"
|
||||
] @variable.builtin
|
||||
|
||||
|
||||
[
|
||||
"ADD"
|
||||
"ALL"
|
||||
|
|
@ -78,13 +77,16 @@
|
|||
] @keyword
|
||||
|
||||
(string) @string
|
||||
|
||||
(echar) @string.escape
|
||||
|
||||
(integer) @number
|
||||
|
||||
[
|
||||
(decimal)
|
||||
(double)
|
||||
] @number.float
|
||||
|
||||
(boolean_literal) @boolean
|
||||
|
||||
[
|
||||
|
|
@ -172,36 +174,75 @@
|
|||
|
||||
[
|
||||
"IN"
|
||||
("NOT" "IN")
|
||||
("NOT"
|
||||
"IN")
|
||||
] @keyword.operator
|
||||
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
|
||||
; Could this be summarized?
|
||||
(select_clause
|
||||
(select_clause
|
||||
[
|
||||
bound_variable: (var)
|
||||
"*"
|
||||
] @variable.parameter)
|
||||
(bind bound_variable: (var) @variable.parameter)
|
||||
(data_block bound_variable: (var) @variable.parameter)
|
||||
(group_condition bound_variable: (var) @variable.parameter)
|
||||
|
||||
(iri_reference ["<" ">"] @module)
|
||||
(bind
|
||||
bound_variable: (var) @variable.parameter)
|
||||
|
||||
(data_block
|
||||
bound_variable: (var) @variable.parameter)
|
||||
|
||||
(group_condition
|
||||
bound_variable: (var) @variable.parameter)
|
||||
|
||||
(iri_reference
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @module)
|
||||
|
||||
(lang_tag) @type
|
||||
(rdf_literal
|
||||
|
||||
(rdf_literal
|
||||
"^^" @type
|
||||
datatype: (_ ["<" ">" (namespace)] @type) @type)
|
||||
datatype:
|
||||
(_
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
(namespace)
|
||||
] @type) @type)
|
||||
|
||||
(function_call identifier: (_) @function)
|
||||
(function_call
|
||||
identifier: (_) @function)
|
||||
|
||||
(function_call identifier: (iri_reference ["<" ">"] @function))
|
||||
(function_call identifier: (prefixed_name (namespace) @function))
|
||||
(base_declaration (iri_reference ["<" ">"] @variable))
|
||||
(prefix_declaration (iri_reference ["<" ">"] @variable))
|
||||
(function_call
|
||||
identifier:
|
||||
(iri_reference
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @function))
|
||||
|
||||
(function_call
|
||||
identifier:
|
||||
(prefixed_name
|
||||
(namespace) @function))
|
||||
|
||||
(base_declaration
|
||||
(iri_reference
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @variable))
|
||||
|
||||
(prefix_declaration
|
||||
(iri_reference
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @variable))
|
||||
|
||||
[
|
||||
(var)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
(blank_node_property_list)
|
||||
(collection)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
"}"
|
||||
"]"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
(group_graph_pattern (triples_block) @local.scope)
|
||||
(group_graph_pattern
|
||||
(triples_block) @local.scope)
|
||||
|
||||
((sub_select (select_clause (var) @local.definition.var))
|
||||
(#set! "definition.var.scope" "parent"))
|
||||
((select_query (select_clause (var) @local.definition.var))
|
||||
(#set! "definition.var.scope" "parent"))
|
||||
((sub_select
|
||||
(select_clause
|
||||
(var) @local.definition.var))
|
||||
(#set! "definition.var.scope" "parent"))
|
||||
|
||||
((select_query
|
||||
(select_clause
|
||||
(var) @local.definition.var))
|
||||
(#set! "definition.var.scope" "parent"))
|
||||
|
||||
(var) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue