From 54f5f690896f104fe6dd248614e3ee149b28d1bc Mon Sep 17 00:00:00 2001 From: axelcl Date: Mon, 18 Jul 2005 22:29:20 +0000 Subject: [PATCH 1/1] Fixed bugs item #1240435 --- .../phpeclipse/phpeditor/php/PHPCodeScanner.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java index 1efa21d..9ad50d5 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java @@ -179,7 +179,7 @@ public class PHPCodeScanner extends AbstractJavaScanner { if (character == '`') { - while (true) { + while (character != ICharacterScanner.EOF) { character = scanner.read(); if (character == '\\') { character = scanner.read(); @@ -187,7 +187,8 @@ public class PHPCodeScanner extends AbstractJavaScanner { return fToken; } } - + scanner.unread(); + return Token.UNDEFINED; } else { scanner.unread(); return Token.UNDEFINED; -- 1.7.1