File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/src/main/java/com/duy/ccppcompiler/compiler/shell
editor-view/src/main/java/com/duy/ide Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3838
3939public class OutputParser {
4040 private static final Pattern FILE_LINE_COL_TYPE_MESSAGE_PATTERN
41- = Pattern .compile ("(\\ S+):([0-9]+):([0-9]+):(\\ s+.*:\\ s+)(.*)" );
41+ = Pattern .compile ("^ (\\ S+):([0-9]+):([0-9]+):(\\ s+.*:\\ s+)(.*)" );
4242 private static final Pattern FILE_LINE_COL_MESSAGE_PATTERN
43- = Pattern .compile ("(\\ S+):([0-9]+):([0-9]+)(.*)" );
43+ = Pattern .compile ("^ (\\ S+):([0-9]+):([0-9]+)(.*)" );
4444 private static final Pattern FILE_LINE_MESSAGE_PATTERN
45- = Pattern .compile ("(\\ S+):([0-9]+):(.*)" );
45+ = Pattern .compile ("^ (\\ S+):([0-9]+):(.*)" );
4646
4747 private DiagnosticsCollector diagnosticsCollector ;
4848
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ private boolean isSystemFile(File file) {
165165 try {
166166 //data dir
167167 File systemDir = mActivity .getFilesDir ().getParentFile ();
168- return systemDir .getCanonicalPath ().startsWith (file .getCanonicalPath ());
168+ return file .getCanonicalPath ().startsWith (systemDir .getCanonicalPath ());
169169 } catch (IOException e ) {
170170 e .printStackTrace ();
171171 return false ;
You can’t perform that action at this time.
0 commit comments