aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-18 10:16:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-18 10:16:53 -0700
commit5118f311399e9d58d0e8ae8eddd8c7c33cf8bb62 (patch)
tree7846b63df7d06f3058e17c1849235faf015a6970
parent6a3ee4ac640e35140be836d6c7485a0d67f0ac47 (diff)
ignore module asm, in some cases it is ok to do so, but warn
-rw-r--r--src/intertyper.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 0f9ce659..354ec19c 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -350,6 +350,10 @@ function intertyper(data, sidePass, baseLineNums) {
return 'FuncHeader';
if (tokensLength >= 1 && token0Text == '}')
return 'FuncEnd';
+ if (token0Text == 'module' && token1Text == 'asm') {
+ warn('Ignoring module asm: ' + item.tokens[2].text);
+ return '/dev/null';
+ }
}
if (tokensLength >= 3 && (token0Text == 'call' || token1Text == 'call'))
return 'Call';