From 9d3e328f477c846671ce710bc0b25c5f0c5ea155 Mon Sep 17 00:00:00 2001 From: khartlage Date: Mon, 24 Mar 2003 19:54:49 +0000 Subject: [PATCH] changed isPHPIdentifierStart, isPHPIdentifierPart --- .../phpdt/internal/compiler/parser/Scanner.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java index 0dacb72..c897fdb 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java @@ -170,7 +170,9 @@ public class Scanner implements IScanner, ITerminalSymbols { * permissible as the first character in a PHP identifier */ public static boolean isPHPIdentifierStart(char ch) { - return Character.isLetter(ch) || (ch == '_'); + return Character.isLetter(ch) + || (ch == '_') + || (0x7F <= ch && ch <= 0xFF); } /** @@ -178,7 +180,9 @@ public class Scanner implements IScanner, ITerminalSymbols { * other than the first character */ public static boolean isPHPIdentifierPart(char ch) { - return Character.isLetterOrDigit(ch) || (ch == '_'); + return Character.isLetterOrDigit(ch) + || (ch == '_') + || (0x7F <= ch && ch <= 0xFF); } public final boolean atEnd() { -- 1.7.1