SourceFileSpan: Report error line and column number as 1-based index. Line and column indices are generally 1-based in editors. Thanks to p_gimeno and santiontanon for reporting.
1 files changed, 1 insertions(+), 1 deletions(-) M src/main/java/nl/grauw/glass/SourceFile.java
M src/main/java/nl/grauw/glass/SourceFile.java +1 -1
@@ 82,7 82,7 @@ public class SourceFile { @Override public String toString() { - String string = "[at " + getSourceFile().getPath() + ":" + lineStart + (column != -1 ? "," + column : "") + "]"; + String string = "[at " + getSourceFile().getPath() + ":" + (lineStart + 1) + (column != -1 ? "," + (column + 1) : "") + "]"; for (int i = lineStart; i < lineEnd && i < content.size(); i++) { string += "\n" + content.get(i);