Fix exception on some combination of quotes

Bug: T174060
Change-Id: Ie53b7260a98519f45d38d2a705b900142c77c801
This commit is contained in:
Max Semenik 2017-08-25 16:05:55 -07:00
parent 13a4780879
commit 54c032d732

View file

@ -925,7 +925,7 @@
firstmultiletterword = undefined;
firstspace = undefined;
if ( readyTokens.length > 0 ) { // it contains tickets before the point of rollback
readyTokens[ readyTokens.length ].pos++; // add one apostrophe, next token will be italic (two apostrophes)
readyTokens[ readyTokens.length - 1 ].pos++; // add one apostrophe, next token will be italic (two apostrophes)
mTokens = readyTokens; // for sending tokens till the point of rollback
} else { // there are no tikets before the point of rollback
stream.pos = tmpTokens[ 0 ].pos - 2; // eat( '\'')