diff --git a/plugins/pretokenise.js b/plugins/pretokenise.js index 02592a1..d5c6293 100644 --- a/plugins/pretokenise.js +++ b/plugins/pretokenise.js @@ -225,8 +225,21 @@ var ch = code.charCodeAt(i); if (needSpaceBetween(lastCh, ch)) resultCode += " "; - if (ch>=LEX_OPERATOR_START && ch=LEX_OPERATOR_START) { + if (ch==LEX_RAW_STRING8) { // decode raw strings + var len = code.charCodeAt(i+1); + resultCode += JSON.stringify(code.substring(i+2, i+2+len)); + i+=1+len; + } else if (ch==LEX_RAW_STRING16) { + var len = code.charCodeAt(i+1) | (code.charCodeAt(i+2)<<8); + resultCode += JSON.stringify(code.substring(i+3, i+3+len)); + i+=2+len; + } else if (ch