diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-10-17 15:17:31 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-10-17 15:17:31 +1100 |
| commit | d47876f37be28a8946737a060c63ad573ae8ba19 (patch) | |
| tree | f7c559a87208a4f6980462073a597f6296c4f235 /lexers/LexFortran.cxx | |
| parent | b10147819c0badcc100efb0edd58c64f54369f4c (diff) | |
| download | scintilla-mirror-d47876f37be28a8946737a060c63ad573ae8ba19.tar.gz | |
Avoid namespace pollution by making lexer functions static.
Diffstat (limited to 'lexers/LexFortran.cxx')
| -rw-r--r-- | lexers/LexFortran.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexFortran.cxx b/lexers/LexFortran.cxx index bfbe301a2..412d64e4e 100644 --- a/lexers/LexFortran.cxx +++ b/lexers/LexFortran.cxx @@ -38,15 +38,15 @@ static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch)); } /***************************************/ -inline bool IsABlank(unsigned int ch) { +static inline bool IsABlank(unsigned int ch) { return (ch == ' ') || (ch == 0x09) || (ch == 0x0b) ; } /***************************************/ -inline bool IsALineEnd(char ch) { +static inline bool IsALineEnd(char ch) { return ((ch == '\n') || (ch == '\r')) ; } /***************************************/ -unsigned int GetContinuedPos(unsigned int pos, Accessor &styler) { +static unsigned int GetContinuedPos(unsigned int pos, Accessor &styler) { while (!IsALineEnd(styler.SafeGetCharAt(pos++))) continue; if (styler.SafeGetCharAt(pos) == '\n') pos++; while (IsABlank(styler.SafeGetCharAt(pos++))) continue; |
