queries: bash, devicetree, yaml

reverse-query-precedence-ordering
Blaž Hrastnik 1 month ago
parent 1231429028
commit b7656e0079

@ -7,7 +7,10 @@
(command_name) @function (command_name) @function
(variable_name) @variable.other.member (variable_name) @variable
((variable_name) @constant
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
[ [
"if" "if"
@ -51,7 +54,7 @@
(command_substitution) (command_substitution)
(process_substitution) (process_substitution)
(expansion) (expansion)
]@embedded ] @embedded
[ [
"$" "$"

@ -51,14 +51,14 @@
(integer_literal) @constant.numeric.integer (integer_literal) @constant.numeric.integer
(identifier) @variable
(call_expression (call_expression
function: (identifier) @function) function: (identifier) @function)
(labeled_item (labeled_item
label: (identifier) @label) label: (identifier) @label)
(identifier) @variable
(unit_address) @tag (unit_address) @tag
(reference) @constant (reference) @constant

@ -1,13 +1,3 @@
(block_mapping_pair
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member))
(block_mapping_pair
key: (flow_node (plain_scalar (string_scalar) @variable.other.member)))
(flow_mapping
(_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member)))
(flow_mapping
(_ key: (flow_node (plain_scalar (string_scalar) @variable.other.member))))
(boolean_scalar) @constant.builtin.boolean (boolean_scalar) @constant.builtin.boolean
(null_scalar) @constant.builtin (null_scalar) @constant.builtin
(double_quote_scalar) @string (double_quote_scalar) @string
@ -24,6 +14,16 @@
(yaml_directive) @keyword (yaml_directive) @keyword
(ERROR) @error (ERROR) @error
(block_mapping_pair
key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member))
(block_mapping_pair
key: (flow_node (plain_scalar (string_scalar) @variable.other.member)))
(flow_mapping
(_ key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member)))
(flow_mapping
(_ key: (flow_node (plain_scalar (string_scalar) @variable.other.member))))
[ [
"," ","
"-" "-"

Loading…
Cancel
Save