aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexVerilog.cxx
diff options
context:
space:
mode:
authorJoe Mueller <unknown>2015-03-18 10:32:38 -0700
committerJoe Mueller <unknown>2015-03-18 10:32:38 -0700
commitf8192d915374325f48149b2f04aab0cd3b0dba7c (patch)
treecec0c9cc39b3a3fa0c3449317ed49599978d4022 /lexers/LexVerilog.cxx
parente9c8dc4190d0a8400cb687796613be0ba952d652 (diff)
downloadscintilla-mirror-f8192d915374325f48149b2f04aab0cd3b0dba7c.tar.gz
fix bug where macro styling allowed '.', fix bug where macro styling could carry over to the next line
Diffstat (limited to 'lexers/LexVerilog.cxx')
-rw-r--r--lexers/LexVerilog.cxx4
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;