Skip to content

Commit

Permalink
Fix GraphViz lexer bug for arrow highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Aug 26, 2020
1 parent aa57b80 commit 3f310af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexGraphViz.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void ColouriseGraphDoc(Sci_PositionU startPos, Sci_Position length, int i
}
break;
case SCE_C_IDENTIFIER:
if (!(iswordstart(ch) || ch == '-')) {
if (!(iswordstart(ch) || (ch == '-' && chNext != '>'))) {
buf[wordLen] = '\0';
Sci_PositionU pos = i;
while (IsASpace(styler.SafeGetCharAt(pos++)));
Expand Down

0 comments on commit 3f310af

Please sign in to comment.