diff options
-rw-r--r-- | src/wasm-s-parser.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 0271370dd..4f0bd199b 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -195,9 +195,19 @@ private: str += '"'; input += 2; continue; + } else if (input[1] == '\'') { + str += '\''; + input += 2; + continue; } else if (input[1] == '\\') { str += '\\'; input += 2; + } else if (input[1] == 'n') { + str += '\n'; + input += 2; + } else if (input[1] == 't') { + str += '\t'; + input += 2; } else { str += (char)(unhex(input[1])*16 + unhex(input[2])); input += 3; |