From 503cadb027ea9819421f3d8e361fed5407358996 Mon Sep 17 00:00:00 2001 From: Joe Mueller Date: Tue, 17 Feb 2015 13:51:41 -0800 Subject: fix bug where terminating whitespace character was not included in escaped identifier --- lexers/LexVerilog.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lexers/LexVerilog.cxx b/lexers/LexVerilog.cxx index 934838eb9..2a53a1846 100644 --- a/lexers/LexVerilog.cxx +++ b/lexers/LexVerilog.cxx @@ -511,8 +511,7 @@ void SCI_METHOD LexerVerilog::Lex(unsigned int startPos, int length, int initSty } break; case SCE_V_IDENTIFIER: - if ((!isEscapedId &&(!IsAWordChar(sc.ch) || (sc.ch == '.'))) || - (isEscapedId && isspacechar(sc.ch))) { + if (!isEscapedId &&(!IsAWordChar(sc.ch) || (sc.ch == '.'))) { char s[100]; lineState &= 0xff00; sc.GetCurrent(s, sizeof(s)); @@ -738,7 +737,6 @@ void SCI_METHOD LexerVerilog::Lex(unsigned int startPos, int length, int initSty } if (isEscapedId && isspacechar(sc.ch)) { isEscapedId = false; - sc.SetState(SCE_V_DEFAULT|activitySet); } } if (definitionsChanged) { -- cgit v1.2.3