Precise error highlighting :D

This commit is contained in:
Manindra Moharana
2014-06-10 21:36:20 +05:30
parent 4001a4324a
commit 8a60bd84da
2 changed files with 43 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ public class ASTGenerator {
/**
* Toggle AST View window
*/
public static final boolean SHOWAST = !true;
public static final boolean SHOWAST = true;
protected DefaultMutableTreeNode buildAST(String source, CompilationUnit cu) {
if (cu == null) {
@@ -2059,6 +2059,8 @@ public class ASTGenerator {
*/
public void highlightPDECode(int tab, int lineNumber, int lineStartWSOffset,
int length) {
log("ASTGen.highlightPDECode: T " + tab + ",L: " + lineNumber + ",LSO: "
+ lineStartWSOffset + ",Len: " + length);
editor.toFront();
editor.getSketch().setCurrentCode(tab);
lineStartWSOffset += editor.ta.getLineStartOffset(lineNumber);