diff options
author | mixedpuppy <devnull@localhost> | 2007-11-12 04:07:02 +0000 |
---|---|---|
committer | mixedpuppy <devnull@localhost> | 2007-11-12 04:07:02 +0000 |
commit | 4d58ea6c2d0c8021606cfc53e1a3158f80dfd8be (patch) | |
tree | e0865191496115f3af5b3655eace099c0444cede /src/LexTeX.cxx | |
parent | d2d4e5cf62507528ed28f068131636616feff6ed (diff) | |
download | scintilla-mirror-4d58ea6c2d0c8021606cfc53e1a3158f80dfd8be.tar.gz |
fix osx build
- add namespace to lexR
- fix name collision with osx headers in LexTeX
Diffstat (limited to 'src/LexTeX.cxx')
-rw-r--r-- | src/LexTeX.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexTeX.cxx b/src/LexTeX.cxx index fb1df2423..e28857a35 100644 --- a/src/LexTeX.cxx +++ b/src/LexTeX.cxx @@ -280,14 +280,14 @@ static void ColouriseTeXDoc( } -static inline bool isnumber(int ch) { +static inline bool isNumber(int ch) { return (ch == '0') || (ch == '1') || (ch == '2') || (ch == '3') || (ch == '4') || (ch == '5') || (ch == '6') || (ch == '7') || (ch == '8') || (ch == '9'); } -static inline bool iswordchar(int ch) { +static inline bool isWordChar(int ch) { return ((ch >= 'a') && (ch <= 'z')) || ((ch >= 'A') && (ch <= 'Z')); } @@ -303,7 +303,7 @@ static int ParseTeXCommand(unsigned int pos, Accessor &styler, char *command) } // find end - while(iswordchar(ch) && !isnumber(ch) && ch!='_' && ch!='.' && length<100){ + while(isWordChar(ch) && !isNumber(ch) && ch!='_' && ch!='.' && length<100){ command[length]=ch; length++; ch=styler.SafeGetCharAt(pos+length+1); |