Fixed issue where the text for character literals with an escape sequence had 2 ending ' characters

git-svn-id: https://smali.googlecode.com/svn/trunk@104 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-06-06 21:03:40 +00:00
parent 88ae58c222
commit 1e457d8a9e

View File

@ -1054,7 +1054,7 @@ fragment CHAR_LITERAL_EMIT
};
fragment CHAR_LITERAL[StringBuilder sb]
: '\'' {sb.append("'");}
( ESCAPE_SEQUENCE[sb] {sb.append("'");}
( ESCAPE_SEQUENCE[sb]
| ~( '\'' | '\\' | '\r' | '\n' ) {sb.append((char)input.LA(-1));}
)
'\'' {sb.append("'");}