aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexLisp.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/LexLisp.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/LexLisp.cxx')
-rw-r--r--src/LexLisp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexLisp.cxx b/src/LexLisp.cxx
index 623ca7cfa..032054100 100644
--- a/src/LexLisp.cxx
+++ b/src/LexLisp.cxx
@@ -21,7 +21,7 @@
#include "SciLexer.h"
-inline bool isLispoperator(char ch) {
+static inline bool isLispoperator(char ch) {
if (isascii(ch) && isalnum(ch))
return false;
if (ch == '\'' || ch == '(' || ch == ')' )
@@ -29,7 +29,7 @@ inline bool isLispoperator(char ch) {
return false;
}
-inline bool isLispwordstart(char ch) {
+static inline bool isLispwordstart(char ch) {
return isascii(ch) && ch != ';' && !isspacechar(ch) && !isLispoperator(ch) &&
ch != '\n' && ch != '\r' && ch != '\"';
}
@@ -192,4 +192,4 @@ static void FoldLispDoc(unsigned int startPos, int length, int /* initStyle */,
styler.SetLevel(lineCurrent, levelPrev | flagsNext);
}
-LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc);
+const LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc);