aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-07-20 13:20:56 +0000
committernyamatongwe <unknown>2006-07-20 13:20:56 +0000
commit8e54cffa1e0e28034b6af34dad6419c252cfab8a (patch)
tree729767a2ce2acb64b9b086eeaf18f1e91dba6bff /src/LexCPP.cxx
parent49114cfaf0bf8a5c6e49db3b6fe5dc2cd11e6ec8 (diff)
downloadscintilla-mirror-8e54cffa1e0e28034b6af34dad6419c252cfab8a.tar.gz
Treat all characters >= 0x80 as word characters. This allows non-ASCII
identifiers in Java to be treated as identifiers.
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r--src/LexCPP.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index bf089d6cf..c7c333a1b 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -28,11 +28,11 @@ static bool IsOKBeforeRE(int ch) {
}
static inline bool IsAWordChar(int ch) {
- return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_');
+ return (ch >= 0x80) || (isalnum(ch) || ch == '.' || ch == '_');
}
static inline bool IsAWordStart(int ch) {
- return (ch < 0x80) && (isalpha(ch) || ch == '_');
+ return (ch >= 0x80) || (isalpha(ch) || ch == '_');
}
static inline bool IsADoxygenChar(int ch) {