mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
chore(bicep): update queries and add scanner
This commit is contained in:
parent
d2b4563230
commit
8b99311ca1
4 changed files with 29 additions and 15 deletions
|
|
@ -36,7 +36,7 @@
|
||||||
"revision": "ccfd77db0ed799b6c22c214fe9d2937f47bc8b34"
|
"revision": "ccfd77db0ed799b6c22c214fe9d2937f47bc8b34"
|
||||||
},
|
},
|
||||||
"bicep": {
|
"bicep": {
|
||||||
"revision": "48a00c254671b5e847e615442678f4f3f5aa1e43"
|
"revision": "b33f29563e102f5cdf70c3bb5fd65a1bf4cc2456"
|
||||||
},
|
},
|
||||||
"bitbake": {
|
"bitbake": {
|
||||||
"revision": "7e0e2ac6f1d0da1a91ab84f35edddfdfece54f1a"
|
"revision": "7e0e2ac6f1d0da1a91ab84f35edddfdfece54f1a"
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ list.bibtex = {
|
||||||
list.bicep = {
|
list.bicep = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/amaanq/tree-sitter-bicep",
|
url = "https://github.com/amaanq/tree-sitter-bicep",
|
||||||
files = { "src/parser.c" },
|
files = { "src/parser.c", "src/scanner.c" },
|
||||||
},
|
},
|
||||||
maintainers = { "@amaanq" },
|
maintainers = { "@amaanq" },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@
|
||||||
(call_expression
|
(call_expression
|
||||||
function: (identifier) @function.call)
|
function: (identifier) @function.call)
|
||||||
|
|
||||||
|
(user_defined_function
|
||||||
|
name: (identifier) @function)
|
||||||
|
|
||||||
; Properties
|
; Properties
|
||||||
(object_property
|
(object_property
|
||||||
(identifier) @property
|
(identifier) @property
|
||||||
|
|
@ -58,12 +61,6 @@
|
||||||
"="
|
"="
|
||||||
(identifier) @type)
|
(identifier) @type)
|
||||||
|
|
||||||
(type_declaration
|
|
||||||
(identifier)
|
|
||||||
"="
|
|
||||||
(array_type
|
|
||||||
(identifier) @type))
|
|
||||||
|
|
||||||
(type
|
(type
|
||||||
(identifier) @type)
|
(identifier) @type)
|
||||||
|
|
||||||
|
|
@ -89,6 +86,10 @@
|
||||||
(member_expression
|
(member_expression
|
||||||
object: (identifier) @variable.parameter)))
|
object: (identifier) @variable.parameter)))
|
||||||
|
|
||||||
|
(parameter
|
||||||
|
.
|
||||||
|
(identifier) @variable.parameter)
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
(variable_declaration
|
(variable_declaration
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
@ -137,8 +138,14 @@
|
||||||
"targetScope"
|
"targetScope"
|
||||||
"type"
|
"type"
|
||||||
"var"
|
"var"
|
||||||
|
"using"
|
||||||
|
"test"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
"func" @keyword.function
|
||||||
|
|
||||||
|
"assert" @keyword.exception
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
[
|
[
|
||||||
"+"
|
"+"
|
||||||
|
|
@ -160,19 +167,20 @@
|
||||||
"??"
|
"??"
|
||||||
"="
|
"="
|
||||||
"!"
|
"!"
|
||||||
|
".?"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
(subscript_expression
|
||||||
|
"?" @operator)
|
||||||
|
|
||||||
|
(nullable_type
|
||||||
|
"?" @operator)
|
||||||
|
|
||||||
"in" @keyword.operator
|
"in" @keyword.operator
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
(import_string
|
|
||||||
"'" @string
|
|
||||||
(import_name) @module
|
|
||||||
"@" @string.special.symbol
|
|
||||||
(import_version) @string.special)
|
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
(number) @number
|
(number) @number
|
||||||
|
|
@ -204,6 +212,7 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
"."
|
"."
|
||||||
|
":"
|
||||||
"::"
|
"::"
|
||||||
"=>"
|
"=>"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@
|
||||||
(compatible_identifier) @local.definition.field
|
(compatible_identifier) @local.definition.field
|
||||||
(_))
|
(_))
|
||||||
|
|
||||||
(import_name) @local.definition.import
|
(user_defined_function
|
||||||
|
name: (identifier) @local.definition.function)
|
||||||
|
|
||||||
(module_declaration
|
(module_declaration
|
||||||
(identifier) @local.definition.namespace)
|
(identifier) @local.definition.namespace)
|
||||||
|
|
@ -45,6 +46,10 @@
|
||||||
(identifier) @local.definition.parameter
|
(identifier) @local.definition.parameter
|
||||||
(_))
|
(_))
|
||||||
|
|
||||||
|
(parameter
|
||||||
|
.
|
||||||
|
(identifier) @local.definition.parameter)
|
||||||
|
|
||||||
(type_declaration
|
(type_declaration
|
||||||
(identifier) @local.definition.type
|
(identifier) @local.definition.type
|
||||||
(_))
|
(_))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue