Commit 8d8312a4 authored by Erik Verbruggen's avatar Erik Verbruggen

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

parent c50172e2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment