diff options
-rw-r--r-- | doc/ScintillaHistory.html | 2 | ||||
-rw-r--r-- | lexers/LexMatlab.cxx | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 5b0b0d5f8..ce834a7fe 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -375,6 +375,8 @@ <td>Elizabeth A. Irizarry</td> <td>Mike Schroeder</td> <td>Morten MacFly</td> + </tr><tr> + <td>Jaime Gimeno</td> </tr> </table> <p> diff --git a/lexers/LexMatlab.cxx b/lexers/LexMatlab.cxx index 0d2064e84..68915af0e 100644 --- a/lexers/LexMatlab.cxx +++ b/lexers/LexMatlab.cxx @@ -106,12 +106,12 @@ static void ColouriseMatlabOctaveDoc( transpose = true; } } else if (sc.state == SCE_MATLAB_STRING) { - if (sc.ch == '\\') { - if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { - sc.Forward(); - } - } else if (sc.ch == '\'') { - sc.ForwardSetState(SCE_MATLAB_DEFAULT); + if (sc.ch == '\'') { + if (sc.chNext == '\'') { + sc.Forward(); + } else { + sc.ForwardSetState(SCE_MATLAB_DEFAULT); + } } } else if (sc.state == SCE_MATLAB_DOUBLEQUOTESTRING) { if (sc.ch == '\\') { |