git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd17f4
)
ignore unknown escape sequences
author
Matthias Kramm
<kramm@quiss.org>
Sat, 14 Mar 2009 20:20:11 +0000
(21:20 +0100)
committer
Matthias Kramm
<kramm@quiss.org>
Sat, 14 Mar 2009 20:20:11 +0000
(21:20 +0100)
lib/as3/tokenizer.lex
patch
|
blob
|
history
diff --git
a/lib/as3/tokenizer.lex
b/lib/as3/tokenizer.lex
index
bc4f012
..
e103b25
100644
(file)
--- a/
lib/as3/tokenizer.lex
+++ b/
lib/as3/tokenizer.lex
@@
-259,8
+259,15
@@
static int do_unescape(const char*s, const char*end, char*n)
}
break;
}
- default:
- syntaxerror("unknown escape sequence: \"\\%c\"", *s);
+ default: {
+ if(o) {
+ o[len+0] = '\\';
+ o[len+1] = *s;
+ }
+ s++;
+ len+=2;
+ break;
+ }
}
}
if(o) o[len]=0;