10 Jul 2012 10:20
.po file lexer uses static variable
Neil Hodgson <nyamatongwe <at> me.com>
2012-07-10 08:20:15 GMT
2012-07-10 08:20:15 GMT
The lexer for .po translation files, which is located inside LexOthers.cxx as ColourisePoDoc / ColourisePoLine, uses a static variable 'state'. This appears to be unsafe and is likely to be incorrect when called multiple times or when multiple files are loaded. If anyone is using this lexer, it should be modified to not use any static variables: it is likely what it wants is to continue on from the pressing style which is the 'initStyle' (3rd) parameter to the lexer. Neil -- -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To post to this group, send email to scintilla-interest <at> googlegroups.com. To unsubscribe from this group, send email to scintilla-interest+unsubscribe <at> googlegroups.com. For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en.
RSS Feed