Skip to content

Commit

Permalink
Actual fix this time
Browse files Browse the repository at this point in the history
  • Loading branch information
chunkybanana committed Jul 13, 2021
1 parent 2227ca8 commit 49a2a8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
}
return 'function'
}
if(state.structure == 'STRING' && char == '\\') state.escaped = true;
if (state.structure == 'STRING' && char !== '`') {
return 'string'
}
Expand All @@ -78,10 +79,9 @@
if ((state.structure == 'COMP_STRING' && char !== '«') || (state.structure == 'COMP_INT' && char !== '»')) {
return 'comp'
}
if(state.structure == 'STRING' && char == '\\') escaped = true;
if (char == '`' && (state.structure == 'NONE' || state.structure == 'STRING')) {
if(escaped){
escaped = false
if(state.escaped){
state.escaped = false
return 'string'
}
if (state.structure == 'STRING') {
Expand Down

0 comments on commit 49a2a8f

Please sign in to comment.