Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: third_party/yasm/patched-yasm/modules/parsers/gas/gas-token.re

Issue 11364046: Update Yasm to 1.2.0 (Yasm Part 1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/yasm/patched-yasm/modules/parsers/gas/gas-token.re
===================================================================
--- third_party/yasm/patched-yasm/modules/parsers/gas/gas-token.re (revision 165590)
+++ third_party/yasm/patched-yasm/modules/parsers/gas/gas-token.re (working copy)
@@ -28,7 +28,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <util.h>
-RCSID("$Id: gas-token.re 2266 2010-01-03 22:02:30Z peter $");
#include <libyasm.h>
@@ -523,8 +522,8 @@
SCANINIT();
/*!re2c
- /* Handle escaped double-quote by copying and continuing */
- "\\\"" {
+ /* Handle escaped character by copying both and continuing. */
+ "\\". {
if (cursor == s->eof) {
yasm_error_set(YASM_ERROR_SYNTAX,
N_("unexpected end of file in string"));
@@ -532,7 +531,8 @@
lvalp->str.len = count;
RETURN(STRING);
}
- strbuf_append(count++, cursor, s, '"');
+ strbuf_append(count++, cursor, s, '\\');
+ strbuf_append(count++, cursor, s, s->tok[1]);
goto stringconst_scan;
}

Powered by Google App Engine
This is Rietveld 408576698