diff options
author | nyamatongwe <devnull@localhost> | 2001-08-07 10:13:31 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-08-07 10:13:31 +0000 |
commit | 7eaef3a3fa623a84ab8921377416eac8c4d72d85 (patch) | |
tree | 89816cbaa7e9e3306bfb51dafbf1247d940af518 /src/LexLua.cxx | |
parent | 07b9eda10c3eda3ee43bb71481ff6aaad16f922a (diff) | |
download | scintilla-mirror-7eaef3a3fa623a84ab8921377416eac8c4d72d85.tar.gz |
Patch from Philippe to set literal string state correctly based on
initial state.
Diffstat (limited to 'src/LexLua.cxx')
-rw-r--r-- | src/LexLua.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/LexLua.cxx b/src/LexLua.cxx index 7bd06b430..2791d98ad 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -75,7 +75,12 @@ static void ColouriseLuaDoc(unsigned int startPos, char chNext = styler[startPos]; unsigned int lengthDoc = startPos + length; bool firstChar = true; - int literalString = 0; + + /* Must initialize the literalString level, if we are inside such a string. + * Note: this isn't enough, because literal strings can be nested, + * we should go back to see at what level we are... + */ + int literalString = (initStyle == SCE_LUA_LITERALSTRING) ? 1 : 0; styler.StartSegment(startPos); for (unsigned int i = startPos; i <= lengthDoc; i++) { |