Skip to content

Commit 7ab82de

Browse files
committed
Adds negative lookahead to correct tokenization
1 parent b19d3f8 commit 7ab82de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntaxes/verilog.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"include": "#keywords"
106106
},
107107
{
108-
"begin": "^\\s*([a-zA-Z][a-zA-Z0-9_]*)\\s+([a-zA-Z][a-zA-Z0-9_]*)(?<!begin|if)\\s*(?=\\(|$)",
108+
"begin": "^\\s*(?!always|and|assign|output|input|inout|wire|module)([a-zA-Z][a-zA-Z0-9_]*)\\s+([a-zA-Z][a-zA-Z0-9_]*)(?<!begin|if)\\s*(?=\\(|$)",
109109
"beginCaptures": {
110110
"1": {
111111
"name": "entity.name.tag.module.reference.verilog"

0 commit comments

Comments
 (0)