diff options
Diffstat (limited to 'lexers/LexVerilog.cxx')
-rw-r--r-- | lexers/LexVerilog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexVerilog.cxx b/lexers/LexVerilog.cxx index 1e45a06bc..89c287d0b 100644 --- a/lexers/LexVerilog.cxx +++ b/lexers/LexVerilog.cxx @@ -342,7 +342,7 @@ int SCI_METHOD LexerVerilog::WordListSet(int n, const char *wl) { } static inline bool IsAWordChar(const int ch) { - return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '\''|| ch == '$'); + return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '\''|| ch == '$'); } static inline bool IsAWordStart(const int ch) { @@ -549,7 +549,7 @@ void SCI_METHOD LexerVerilog::Lex(unsigned int startPos, int length, int initSty } break; case SCE_V_PREPROCESSOR: - if (!IsAWordChar(sc.ch) && !sc.atLineEnd) { + if (!IsAWordChar(sc.ch) || sc.atLineEnd) { sc.SetState(SCE_V_DEFAULT|activitySet); } break; |