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/LexVB.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/LexVB.cxx')
-rw-r--r-- | src/LexVB.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LexVB.cxx b/src/LexVB.cxx index bfd34d1e4..c9ba63ee3 100644 --- a/src/LexVB.cxx +++ b/src/LexVB.cxx @@ -24,19 +24,19 @@ static bool IsVBComment(Accessor &styler, int pos, int len) { return len>0 && styler[pos]=='\''; } -inline bool IsTypeCharacter(const int ch) { +static inline bool IsTypeCharacter(const int ch) { return ch == '%' || ch == '&' || ch == '@' || ch == '!' || ch == '#' || ch == '$'; } -inline bool IsAWordChar(const int ch) { +static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); } -inline bool IsAWordStart(const int ch) { +static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } -inline bool IsADateCharacter(const int ch) { +static inline bool IsADateCharacter(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '|' || ch == '-' || ch == '/' || ch == ':' || ch == ' ' || ch == '\t'); } @@ -200,6 +200,6 @@ static void ColouriseVBScriptDoc(unsigned int startPos, int length, int initStyl ColouriseVBDoc(startPos, length, initStyle, keywordlists, styler, true); } -LexerModule lmVB(SCLEX_VB, ColouriseVBNetDoc, "vb", FoldVBDoc); -LexerModule lmVBScript(SCLEX_VBSCRIPT, ColouriseVBScriptDoc, "vbscript", FoldVBDoc); +const LexerModule lmVB(SCLEX_VB, ColouriseVBNetDoc, "vb", FoldVBDoc); +const LexerModule lmVBScript(SCLEX_VBSCRIPT, ColouriseVBScriptDoc, "vbscript", FoldVBDoc); |