Hi,
I dont know if there are other languages with multiline strings where you need to read several lines to reach end of string.
At least this happens with Lua. For what I have understood in the code, detecting things that need several lines (multiline comments) is done in ColorizeInternal (before calling ColorizeRange) where some flags are set in Gliphs: mComment, mMultiLineComment or mPreprocessor so that mColorIndex is respected or not in GetGlyphColor.
If all above is correct, the only way to process multiline strings and also multiline comments in Lua as
--[=[
one line
second line
--[[
another comment inside the other
which is multiline
]]
]=]
would be that ColorizeInternal instead of doing the same for all Languages, would call a function for doing this work depending on the language (If there is not such function would call a default one) and also having a flag in Glyph called mString.
What do you think about?
Hi,
I dont know if there are other languages with multiline strings where you need to read several lines to reach end of string.
At least this happens with Lua. For what I have understood in the code, detecting things that need several lines (multiline comments) is done in ColorizeInternal (before calling ColorizeRange) where some flags are set in Gliphs: mComment, mMultiLineComment or mPreprocessor so that mColorIndex is respected or not in GetGlyphColor.
If all above is correct, the only way to process multiline strings and also multiline comments in Lua as
would be that ColorizeInternal instead of doing the same for all Languages, would call a function for doing this work depending on the language (If there is not such function would call a default one) and also having a flag in Glyph called mString.
What do you think about?