git://git.phpeclipse.com
/
phpeclipse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
#1467296 patch for bug #1454529
[phpeclipse.git]
/
net.sourceforge.phpeclipse
/
src
/
net
/
sourceforge
/
phpdt
/
internal
/
ui
/
text
/
FastJavaPartitionScanner.java
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
(file)
--- 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 <?php // comment ?>
- fScanner.unread();
+ if (nextch!=ICharacterScanner.EOF) {
+ fScanner.unread();
+ }
}
}