mirror of
https://github.com/ScintillaOrg/lexilla.git
synced 2025-05-08 19:06:45 +08:00
#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:
parent
3e48db84c1
commit
0880f5eac3
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user