diff options
author | nyamatongwe <unknown> | 2000-11-06 04:12:03 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-11-06 04:12:03 +0000 |
commit | e020ff6a8f4260e785e3d5218b4b061db81a3add (patch) | |
tree | ad0e759a350ac927ee575a83f7d44f58d1a94e78 /src/LexHTML.cxx | |
parent | 24c42b17885725eb69f18144bb5588679d8e896e (diff) | |
download | scintilla-mirror-e020ff6a8f4260e785e3d5218b4b061db81a3add.tar.gz |
Fix from Steve for handling '\' in PHP strings.
Diffstat (limited to 'src/LexHTML.cxx')
-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; } |