diff options
| author | Joe Mueller <devnull@localhost> | 2015-02-17 13:51:41 -0800 |
|---|---|---|
| committer | Joe Mueller <devnull@localhost> | 2015-02-17 13:51:41 -0800 |
| commit | fa9702b8b733c2bbac192e227d778af33b050fb5 (patch) | |
| tree | 0586d6893bde66bfb311a8199298d64be1c77781 | |
| parent | e591ca105a8d88d6c635f34254aeed892c505b6b (diff) | |
| download | scintilla-mirror-fa9702b8b733c2bbac192e227d778af33b050fb5.tar.gz | |
fix bug where terminating whitespace character was not included in escaped identifier
| -rw-r--r-- | lexers/LexVerilog.cxx | 4 |
1 files changed, 1 insertions, 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) { |
