From 38408da3818fea8fab7b9832c6e8b76aeb13aefa Mon Sep 17 00:00:00 2001 From: bananeweizen Date: Sun, 15 Jan 2006 18:24:54 +0000 Subject: [PATCH] unification of bug fixes 1198893, 1404228 --- .../internal/ui/text/FastJavaPartitionScanner.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/FastJavaPartitionScanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/FastJavaPartitionScanner.java index 559dc88..d9e8c7f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/FastJavaPartitionScanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/FastJavaPartitionScanner.java @@ -203,7 +203,9 @@ public class FastJavaPartitionScanner implements IPartitionTokenScanner, IPHPPar } else { // bug #1404228: Crash on - fScanner.unread(); + if (nextch!=ICharacterScanner.EOF) { + fScanner.unread(); + } } } -- 1.7.1