aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexVerilog.cxx
diff options
context:
space:
mode:
authorJoe Mueller <devnull@localhost>2015-03-18 10:32:38 -0700
committerJoe Mueller <devnull@localhost>2015-03-18 10:32:38 -0700
commite0f3cc96dfdc96bef16bb0c670bcda74f97e3972 (patch)
tree4acf5245c775d04139788e111ee26a929ba89636 /lexers/LexVerilog.cxx
parent0b9de21b38cdd85b44ec258d428eb4ed6ad3b913 (diff)
downloadscintilla-mirror-e0f3cc96dfdc96bef16bb0c670bcda74f97e3972.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;