File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,6 @@ export class TSHelper {
687687 const escapeSequences : Array < [ RegExp , string ] > = [
688688 [ / [ \\ ] / g, "\\\\" ] ,
689689 [ / [ \' ] / g, "\\\'" ] ,
690- [ / [ \` ] / g, "\\\`" ] ,
691690 [ / [ \" ] / g, "\\\"" ] ,
692691 [ / [ \n ] / g, "\\n" ] ,
693692 [ / [ \r ] / g, "\\r" ] ,
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ local quoteInTemplateString = "\' \' \'";
33local doubleQuoteInQuotes = " \" \" \" " ;
44local doubleQuoteInDoubleQuotes = " \" \" \" " ;
55local doubleQuoteInTemplateString = " \" \" \" " ;
6- local escapedCharsInQuotes = " \\ \0 \b \t \n \v \f \" \' \` " ;
7- local escapedCharsInDoubleQUotes = " \\ \0 \b \t \n \v \f \" \' \` " ;
8- local escapedCharsInTemplateString = " \\ \0 \b \t \n \v \f \" \' \` " ;
6+ local backQuoteInQuotes = " ` ` `" ;
7+ local backQuoteInDoubleQuotes = " ` ` `" ;
8+ local backQuoteInTemplateString = " ` ` `" ;
9+ local escapedCharsInQuotes = " \\ \0 \b \t \n \v \f \" \' `" ;
10+ local escapedCharsInDoubleQUotes = " \\ \0 \b \t \n \v \f \" \' " ;
11+ local escapedCharsInTemplateString = " \\ \0 \b \t \n \v \f \" \' `" ;
912local nonEmptyTemplateString = " Level 0: \n\t " .. (tostring (" Level 1: \n\t\t " .. (tostring (" Level 3: \n\t\t\t " .. (tostring (" Last level \n --" ) .. " \n --" )) .. " \n --" )) .. " \n --" );
Original file line number Diff line number Diff line change @@ -5,8 +5,12 @@ let doubleQuoteInQuotes = '" " "';
55let doubleQuoteInDoubleQuotes = "\" \" \"" ;
66let doubleQuoteInTemplateString = `" " "` ;
77
8+ let backQuoteInQuotes = '` ` `' ;
9+ let backQuoteInDoubleQuotes = "` ` `" ;
10+ let backQuoteInTemplateString = `\` \` \`` ;
11+
812let escapedCharsInQuotes = '\\ \0 \b \t \n \v \f \" \' \`' ;
9- let escapedCharsInDoubleQUotes = "\\ \0 \b \t \n \v \f \" \' \` " ;
13+ let escapedCharsInDoubleQUotes = "\\ \0 \b \t \n \v \f \" \'" ;
1014let escapedCharsInTemplateString = `\\ \0 \b \t \n \v \f \" \' \`` ;
1115
1216let nonEmptyTemplateString = `Level 0: \n\t ${ `Level 1: \n\t\t ${ `Level 3: \n\t\t\t ${ 'Last level \n --' } \n --` } \n --` } \n --` ;
You can’t perform that action at this time.
0 commit comments