diff options
Diffstat (limited to 'lexers/LexOpal.cxx')
-rw-r--r-- | lexers/LexOpal.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexers/LexOpal.cxx b/lexers/LexOpal.cxx index 320fe9bee..df487e63a 100644 --- a/lexers/LexOpal.cxx +++ b/lexers/LexOpal.cxx @@ -295,7 +295,7 @@ inline bool HandleInteger( unsigned int & cur, unsigned int one_too_much, Access } ch = styler.SafeGetCharAt( cur ); - if( !( isascii( ch ) && isdigit( ch ) ) ) + if( !( IsASCII( ch ) && isdigit( ch ) ) ) { styler.ColourTo( cur - 1, SCE_OPAL_INTEGER ); styler.StartSegment( cur ); @@ -314,7 +314,7 @@ inline bool HandleWord( unsigned int & cur, unsigned int one_too_much, Accessor { ch = styler.SafeGetCharAt( cur ); if( ( ch != '_' ) && ( ch != '-' ) && - !( isascii( ch ) && ( islower( ch ) || isupper( ch ) || isdigit( ch ) ) ) ) break; + !( IsASCII( ch ) && ( islower( ch ) || isupper( ch ) || isdigit( ch ) ) ) ) break; cur++; if( cur >= one_too_much ) @@ -490,13 +490,13 @@ static void ColouriseOpalDoc( unsigned int startPos, int length, int initStyle, default: { // Integer - if( isascii( ch ) && isdigit( ch ) ) + if( IsASCII( ch ) && isdigit( ch ) ) { if( !HandleInteger( cur, one_too_much, styler ) ) return; } // Keyword - else if( isascii( ch ) && ( islower( ch ) || isupper( ch ) ) ) + else if( IsASCII( ch ) && ( islower( ch ) || isupper( ch ) ) ) { if( !HandleWord( cur, one_too_much, styler, keywordlists ) ) return; |