aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-28 17:30:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-28 17:30:25 -0800
commit2b46a65a8d91e0721a7cdd7f91e4899e07831eaa (patch)
treef58d1cbfd2a08a535a36bcc02c2cd21c3c80f90c
parent48fc9c6b03ac1024e330b1159fefbcbe9ad79740 (diff)
fix test_lua by supporting lines beginning with ; inside functions
-rw-r--r--src/intertyper.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 637f780a..bc9ef05a 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -92,7 +92,9 @@ function intertyper(data, parseFunctions, baseLineNum) {
}
}
}
- this.forwardItems(ret.filter(function(item) { return item.lineText && item.lineText[0] != ';'; }), 'Tokenizer');
+ // We need lines beginning with ';' inside functions, because older LLVM versions generated labels that way. But when not
+ // parsing functions, we can ignore all such lines and save some time that way.
+ this.forwardItems(ret.filter(function(item) { return item.lineText && (item.lineText[0] != ';' || parseFunctions); }), 'Tokenizer');
return unparsedFunctions;
}
});