Skip to content

Commit

Permalink
Catch parser errors on a file basis, instead of high up in the tree, …
Browse files Browse the repository at this point in the history
…disrupting the scanning process
  • Loading branch information
ssharks committed Sep 4, 2014
1 parent 30505a4 commit 1db235f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/src/net/sourceforge/veditor/parser/OutlineDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,15 @@ private void scanFile(IFile file) {
parser.parse();
}
} catch (CoreException e) {
} catch (TokenMgrError e) {
VerilogPlugin.setErrorMarker(file, 1, "Token manager error: " + e.getMessage());
} catch (HdlParserException e){

VerilogPlugin.setErrorMarker(file, 1, "Parsing error: " + e.getMessage());
} catch (Error e) {
VerilogPlugin.setErrorMarker(file, 1, "Parsing error: " + e.getMessage());
}
}


/**
* Class used to determine the changes
*
Expand Down

0 comments on commit 1db235f

Please sign in to comment.