fix: bug 242664: [Content Assist] Proposals

https://bugs.eclipse.org/bugs/show_bug.cgi?id=242664
This commit is contained in:
mclay 2008-08-18 18:12:03 +00:00
parent c9fc5d9a4b
commit 24f32bad39

View file

@ -88,7 +88,8 @@ public final class ParseTreeUtil {
AbstractNode abstractNode = null;
if (contextNode.getOffset() <= offsetPosition) {
if (contextNode.getOffset() < offsetPosition ||
(0==offsetPosition && offsetPosition==contextNode.getOffset())) {
if (contextNode.getGrammarElement() instanceof AbstractElement
|| contextNode.getGrammarElement() instanceof ParserRule) {