Skip to content

Commit 26cc4a3

Browse files
authored
Iverilog_linting_bug (#501)
* Adds negative lookahead to correct tokenization * Adds linting fix to changelog
1 parent b19d3f8 commit 26cc4a3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)\
66

7+
## Unreleased
8+
9+
### Fixed
10+
- Fix the issue of keywords being tokenized as entity.name.tag.module.reference.verilog instead of keyword.other.verilog to fix the issue in [#476](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/476)
11+
712
## [1.15.2] - 2024-10-19
813

914
### Changed

syntaxes/verilog.tmLanguage.json

+1-1
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)