#261 Use an unnamed namespace to ensure that definitions do not affect other lexers as appeared the case with LexTOML.

This commit is contained in:
Neil Hodgson 2024-08-15 12:44:32 +10:00
parent 3e48db84c1
commit 0880f5eac3

View File

@ -35,7 +35,9 @@
using namespace Scintilla;
using namespace Lexilla;
static const char *const JSONWordListDesc[] = {
namespace {
const char *const JSONWordListDesc[] = {
"JSON Keywords",
"JSON-LD Keywords",
0
@ -497,6 +499,8 @@ void SCI_METHOD LexerJSON::Fold(Sci_PositionU startPos,
}
}
}
extern const LexerModule lmJSON(SCLEX_JSON,
LexerJSON::LexerFactoryJSON,
"json",