mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Fix getting of character at index
This commit is contained in:
parent
8f5c77c3ce
commit
71c59dddcc
2 changed files with 2 additions and 2 deletions
|
@ -208,7 +208,7 @@
|
|||
heredoc = quote.length === 3;
|
||||
ref2 = this.matchWithInterpolations(regex, quote), tokens = ref2.tokens, end = ref2.index;
|
||||
$ = tokens.length - 1;
|
||||
delimiter = quote[0];
|
||||
delimiter = quote.charAt(0);
|
||||
if (heredoc) {
|
||||
indent = null;
|
||||
doc = ((function() {
|
||||
|
|
|
@ -204,7 +204,7 @@ exports.Lexer = class Lexer
|
|||
{tokens, index: end} = @matchWithInterpolations regex, quote
|
||||
$ = tokens.length - 1
|
||||
|
||||
delimiter = quote[0]
|
||||
delimiter = quote.charAt(0)
|
||||
if heredoc
|
||||
# Find the smallest indentation. It will be removed from all lines later.
|
||||
indent = null
|
||||
|
|
Loading…
Reference in a new issue