aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexBaan.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-02-12 03:34:52 +0000
committernyamatongwe <devnull@localhost>2002-02-12 03:34:52 +0000
commitf6ed5ea2102a61161051a68ba659c7eb19a4a549 (patch)
treed1656678b1feffb7d5b8e089d5da63f74dc8ffce /src/LexBaan.cxx
parentddefbe59033421947f57e7d57b0a390ea821d186 (diff)
downloadscintilla-mirror-f6ed5ea2102a61161051a68ba659c7eb19a4a549.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.cxx6
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);