aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-06-17 18:19:08 -0700
committerChristian Clason <c.clason@uni-graz.at>2024-06-23 12:12:42 +0200
commit9581d86f97fce43f2302895673cf9cac4c6f7045 (patch)
treec28add7fc68ef4358b8f2649797a2611992ca2d0
parentbot(lockfile): update cuda, glsl, hlsl, janet_simple, latex, scala, slang, wg... (diff)
downloadnvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.tar
nvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.tar.gz
nvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.tar.bz2
nvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.tar.lz
nvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.tar.xz
nvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.tar.zst
nvim-treesitter-9581d86f97fce43f2302895673cf9cac4c6f7045.zip
fix(verilog): various touch-ups
-rw-r--r--queries/verilog/highlights.scm28
1 files changed, 19 insertions, 9 deletions
diff --git a/queries/verilog/highlights.scm b/queries/verilog/highlights.scm
index e5393ac52..69363d64b 100644
--- a/queries/verilog/highlights.scm
+++ b/queries/verilog/highlights.scm
@@ -22,7 +22,6 @@
"localparam"
"defparam"
"assign"
- "typedef"
"modport"
"fork"
"join"
@@ -44,6 +43,7 @@
"enum"
"struct"
"union"
+ "typedef"
] @keyword.type
[
@@ -96,9 +96,6 @@
(package_identifier
(simple_identifier) @constant))
-(parameter_port_list
- "#" @constructor)
-
[
"="
"-"
@@ -110,12 +107,9 @@
"|"
"&&"
"||"
- ":"
- "{"
- "}"
- "'{"
"<="
"@"
+ "@*"
"=="
"!="
"==="
@@ -130,8 +124,12 @@
"|="
(unary_operator)
(inc_or_dec_operator)
+ "#"
] @operator
+(parameter_port_list
+ "#" @constructor)
+
[
"or"
"and"
@@ -160,6 +158,8 @@
[
"signed"
"unsigned"
+ "input"
+ "output"
] @keyword.modifier
(data_type
@@ -197,10 +197,17 @@
[
";"
"::"
+ ":"
","
"."
] @punctuation.delimiter
+(conditional_expression
+ [
+ "?"
+ ":"
+ ] @keyword.conditional.ternary)
+
(default_nettype_compiler_directive
(default_nettype_value) @string)
@@ -223,7 +230,7 @@
(unbased_unsized_literal)
] @number
-(time_unit) @attribute
+(time_unit) @type.builtin
(checker_instantiation
(checker_identifier
@@ -307,4 +314,7 @@
"]"
"("
")"
+ "{"
+ "}"
+ "'{"
] @punctuation.bracket