fix(verilog): various touch-ups

This commit is contained in:
Riley Bruins 2024-06-17 18:19:08 -07:00 committed by Christian Clason
parent a8904e7f83
commit 9581d86f97

View file

@ -22,7 +22,6 @@
"localparam" "localparam"
"defparam" "defparam"
"assign" "assign"
"typedef"
"modport" "modport"
"fork" "fork"
"join" "join"
@ -44,6 +43,7 @@
"enum" "enum"
"struct" "struct"
"union" "union"
"typedef"
] @keyword.type ] @keyword.type
[ [
@ -96,9 +96,6 @@
(package_identifier (package_identifier
(simple_identifier) @constant)) (simple_identifier) @constant))
(parameter_port_list
"#" @constructor)
[ [
"=" "="
"-" "-"
@ -110,12 +107,9 @@
"|" "|"
"&&" "&&"
"||" "||"
":"
"{"
"}"
"'{"
"<=" "<="
"@" "@"
"@*"
"==" "=="
"!=" "!="
"===" "==="
@ -130,8 +124,12 @@
"|=" "|="
(unary_operator) (unary_operator)
(inc_or_dec_operator) (inc_or_dec_operator)
"#"
] @operator ] @operator
(parameter_port_list
"#" @constructor)
[ [
"or" "or"
"and" "and"
@ -160,6 +158,8 @@
[ [
"signed" "signed"
"unsigned" "unsigned"
"input"
"output"
] @keyword.modifier ] @keyword.modifier
(data_type (data_type
@ -197,10 +197,17 @@
[ [
";" ";"
"::" "::"
":"
"," ","
"." "."
] @punctuation.delimiter ] @punctuation.delimiter
(conditional_expression
[
"?"
":"
] @keyword.conditional.ternary)
(default_nettype_compiler_directive (default_nettype_compiler_directive
(default_nettype_value) @string) (default_nettype_value) @string)
@ -223,7 +230,7 @@
(unbased_unsized_literal) (unbased_unsized_literal)
] @number ] @number
(time_unit) @attribute (time_unit) @type.builtin
(checker_instantiation (checker_instantiation
(checker_identifier (checker_identifier
@ -307,4 +314,7 @@
"]" "]"
"(" "("
")" ")"
"{"
"}"
"'{"
] @punctuation.bracket ] @punctuation.bracket