diff options
author | nyamatongwe <devnull@localhost> | 2000-11-06 04:12:03 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-11-06 04:12:03 +0000 |
commit | 43dc037b990e33d95ee56e262e75a871ab37a3a1 (patch) | |
tree | ad0e759a350ac927ee575a83f7d44f58d1a94e78 /src | |
parent | 6a86e2f301789b812b7d7631416aaa911fe6628a (diff) | |
download | scintilla-mirror-43dc037b990e33d95ee56e262e75a871ab37a3a1.tar.gz |
Fix from Steve for handling '\' in PHP strings.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexHTML.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index ca52f490d..92195f00d 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -1085,7 +1085,10 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty } break; case SCE_HPHP_SIMPLESTRING: - if (ch == '\'') { + if (ch == '\\') { + // skip the next char + i++; + } else if (ch == '\'') { styler.ColourTo(i, StateToPrint); state = SCE_HPHP_DEFAULT; } |