mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
Fix exception on some combination of quotes
Bug: T174060 Change-Id: Ie53b7260a98519f45d38d2a705b900142c77c801
This commit is contained in:
parent
13a4780879
commit
54c032d732
|
@ -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( '\'')
|
||||
|
|
Loading…
Reference in a new issue