diff options
author | nyamatongwe <unknown> | 2002-02-12 03:34:52 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-12 03:34:52 +0000 |
commit | 2c7158c928c73f02f4fc448fdd96ba4f45d0ea76 (patch) | |
tree | d1656678b1feffb7d5b8e089d5da63f74dc8ffce /src/LexBaan.cxx | |
parent | f540bc2de8cefe784c71b3401ebaf971043546e7 (diff) | |
download | scintilla-mirror-2c7158c928c73f02f4fc448fdd96ba4f45d0ea76.tar.gz |
Made lexer objects const so they do not show up in map as static / globals.
File specific inline functions marker as static to ensure no bad linking.
Diffstat (limited to 'src/LexBaan.cxx')
-rw-r--r-- | src/LexBaan.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexBaan.cxx b/src/LexBaan.cxx index a8a9d6054..9727473f9 100644 --- a/src/LexBaan.cxx +++ b/src/LexBaan.cxx @@ -21,11 +21,11 @@ #include "Scintilla.h" #include "SciLexer.h" -inline bool IsAWordChar(const int ch) { +static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '$' || ch == ':'); } -inline bool IsAWordStart(const int ch) { +static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } @@ -186,4 +186,4 @@ static void FoldBaanDoc(unsigned int startPos, int length, int initStyle, WordLi styler.SetLevel(lineCurrent, levelPrev | flagsNext); } -LexerModule lmBaan(SCLEX_BAAN, ColouriseBaanDoc, "baan", FoldBaanDoc); +const LexerModule lmBaan(SCLEX_BAAN, ColouriseBaanDoc, "baan", FoldBaanDoc); |