diff options
| author | Jack Koenig | 2021-10-08 17:09:55 -0700 |
|---|---|---|
| committer | GitHub | 2021-10-09 00:09:55 +0000 |
| commit | ef1d27a84addc46353884eb06ea18f4c68e6a808 (patch) | |
| tree | 315bec8bfb3eacdb7da9478d2b458cffce0a087e /src/main | |
| parent | d705335ed4a0af3371ad77ad5952700ea80f0be2 (diff) | |
Support parsing missing keywords as ids (#2381)
Reset, AsyncReset, Interval, attach, assert, assume, and cover have all
been added as keywords but not added to the allowlist for parsing as
ids.
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/antlr4/FIRRTL.g4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/antlr4/FIRRTL.g4 b/src/main/antlr4/FIRRTL.g4 index aa53f2f0..f5116485 100644 --- a/src/main/antlr4/FIRRTL.g4 +++ b/src/main/antlr4/FIRRTL.g4 @@ -225,8 +225,11 @@ keywordAsId | 'UInt' | 'SInt' | 'Clock' + | 'Reset' + | 'AsyncReset' | 'Analog' | 'Fixed' + | 'Interval' | 'flip' | 'wire' | 'reg' @@ -259,6 +262,10 @@ keywordAsId | 'read' | 'write' | 'rdwr' + | 'attach' + | 'assert' + | 'assume' + | 'cover' ; // Parentheses are added as part of name because semantics require no space between primop and open parentheses |
