Fix to include the last character of a node into the position calculation.

This commit is contained in:
Erik Verbruggen
2009-12-29 18:32:52 +01:00
parent c50172e201
commit 8d8312a427

View File

@@ -85,7 +85,7 @@ protected:
unsigned endLine, endColumn;
getTokenEndPosition(lastToken - 1, &endLine, &endColumn);
if (_line < endLine || (_line == endLine && _column < endColumn)) {
if (_line < endLine || (_line == endLine && _column <= endColumn)) {
_nodes.append(ast);
return true;
}