mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
highlights(verilog): fix captures
This commit is contained in:
parent
dc5542a953
commit
ee0834d59b
1 changed files with 12 additions and 8 deletions
|
|
@ -37,9 +37,9 @@
|
||||||
"default"
|
"default"
|
||||||
"break"
|
"break"
|
||||||
"assert"
|
"assert"
|
||||||
(unique_priority)
|
|
||||||
"tagged"
|
"tagged"
|
||||||
"extern"
|
"extern"
|
||||||
|
(unique_priority)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -112,14 +112,11 @@
|
||||||
"&&"
|
"&&"
|
||||||
"||"
|
"||"
|
||||||
":"
|
":"
|
||||||
(unary_operator)
|
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
"'{"
|
"'{"
|
||||||
"<="
|
"<="
|
||||||
"@"
|
"@"
|
||||||
"or"
|
|
||||||
"and"
|
|
||||||
"=="
|
"=="
|
||||||
"!="
|
"!="
|
||||||
"==="
|
"==="
|
||||||
|
|
@ -132,9 +129,15 @@
|
||||||
">>"
|
">>"
|
||||||
"<<"
|
"<<"
|
||||||
"|="
|
"|="
|
||||||
|
(unary_operator)
|
||||||
(inc_or_dec_operator)
|
(inc_or_dec_operator)
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"or"
|
||||||
|
"and"
|
||||||
|
] @keyword.operator
|
||||||
|
|
||||||
(cast
|
(cast
|
||||||
["'" "(" ")"] @operator)
|
["'" "(" ")"] @operator)
|
||||||
|
|
||||||
|
|
@ -153,7 +156,7 @@
|
||||||
[
|
[
|
||||||
"signed"
|
"signed"
|
||||||
"unsigned"
|
"unsigned"
|
||||||
] @label
|
] @type.qualifier
|
||||||
|
|
||||||
(data_type
|
(data_type
|
||||||
(simple_identifier) @type)
|
(simple_identifier) @type)
|
||||||
|
|
@ -177,10 +180,11 @@
|
||||||
] @string @spell
|
] @string @spell
|
||||||
|
|
||||||
[
|
[
|
||||||
(include_compiler_directive)
|
|
||||||
(default_nettype_compiler_directive)
|
(default_nettype_compiler_directive)
|
||||||
(timescale_compiler_directive)
|
(timescale_compiler_directive)
|
||||||
] @constant.macro
|
] @preproc
|
||||||
|
|
||||||
|
(include_compiler_directive) @include
|
||||||
|
|
||||||
; begin/end label
|
; begin/end label
|
||||||
(seq_block
|
(seq_block
|
||||||
|
|
@ -262,7 +266,7 @@
|
||||||
;(parameter_identifier) @field))
|
;(parameter_identifier) @field))
|
||||||
|
|
||||||
(type_declaration
|
(type_declaration
|
||||||
(data_type ["packed"] @label))
|
(data_type ["packed"] @type.qualifier))
|
||||||
|
|
||||||
(struct_union) @type
|
(struct_union) @type
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue