aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexEiffel.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-02-12 03:34:52 +0000
committernyamatongwe <unknown>2002-02-12 03:34:52 +0000
commit2c7158c928c73f02f4fc448fdd96ba4f45d0ea76 (patch)
treed1656678b1feffb7d5b8e089d5da63f74dc8ffce /src/LexEiffel.cxx
parentf540bc2de8cefe784c71b3401ebaf971043546e7 (diff)
downloadscintilla-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/LexEiffel.cxx')
-rw-r--r--src/LexEiffel.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/LexEiffel.cxx b/src/LexEiffel.cxx
index 647094320..9daa98fd5 100644
--- a/src/LexEiffel.cxx
+++ b/src/LexEiffel.cxx
@@ -21,7 +21,7 @@
#include "Scintilla.h"
#include "SciLexer.h"
-inline bool isEiffelOperator(unsigned int ch) {
+static inline bool isEiffelOperator(unsigned int ch) {
// '.' left out as it is used to make up numbers
return ch == '*' || ch == '/' || ch == '\\' || ch == '-' || ch == '+' ||
ch == '(' || ch == ')' || ch == '=' ||
@@ -32,11 +32,11 @@ inline bool isEiffelOperator(unsigned int ch) {
ch == '!' || ch == '@' || ch == '?';
}
-inline bool IsAWordChar(unsigned int ch) {
+static inline bool IsAWordChar(unsigned int ch) {
return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_');
}
-inline bool IsAWordStart(unsigned int ch) {
+static inline bool IsAWordStart(unsigned int ch) {
return (ch < 0x80) && (isalnum(ch) || ch == '_');
}
@@ -226,5 +226,5 @@ static void FoldEiffelDocKeyWords(unsigned int startPos, int length, int /* init
styler.SetLevel(lineCurrent, levelPrev | flagsNext);
}
-LexerModule lmEiffel(SCLEX_EIFFEL, ColouriseEiffelDoc, "eiffel", FoldEiffelDocIndent);
-LexerModule lmEiffelkw(SCLEX_EIFFELKW, ColouriseEiffelDoc, "eiffelkw", FoldEiffelDocKeyWords);
+const LexerModule lmEiffel(SCLEX_EIFFEL, ColouriseEiffelDoc, "eiffel", FoldEiffelDocIndent);
+const LexerModule lmEiffelkw(SCLEX_EIFFELKW, ColouriseEiffelDoc, "eiffelkw", FoldEiffelDocKeyWords);