aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-11-06 04:12:03 +0000
committernyamatongwe <unknown>2000-11-06 04:12:03 +0000
commite020ff6a8f4260e785e3d5218b4b061db81a3add (patch)
treead0e759a350ac927ee575a83f7d44f58d1a94e78 /src
parent24c42b17885725eb69f18144bb5588679d8e896e (diff)
downloadscintilla-mirror-e020ff6a8f4260e785e3d5218b4b061db81a3add.tar.gz
Fix from Steve for handling '\' in PHP strings.
Diffstat (limited to 'src')
-rw-r--r--src/LexHTML.cxx5
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;
}