Fix getting of character at index
This commit is contained in:
parent
8f5c77c3ce
commit
71c59dddcc
|
@ -208,7 +208,7 @@
|
||||||
heredoc = quote.length === 3;
|
heredoc = quote.length === 3;
|
||||||
ref2 = this.matchWithInterpolations(regex, quote), tokens = ref2.tokens, end = ref2.index;
|
ref2 = this.matchWithInterpolations(regex, quote), tokens = ref2.tokens, end = ref2.index;
|
||||||
$ = tokens.length - 1;
|
$ = tokens.length - 1;
|
||||||
delimiter = quote[0];
|
delimiter = quote.charAt(0);
|
||||||
if (heredoc) {
|
if (heredoc) {
|
||||||
indent = null;
|
indent = null;
|
||||||
doc = ((function() {
|
doc = ((function() {
|
||||||
|
|
|
@ -204,7 +204,7 @@ exports.Lexer = class Lexer
|
||||||
{tokens, index: end} = @matchWithInterpolations regex, quote
|
{tokens, index: end} = @matchWithInterpolations regex, quote
|
||||||
$ = tokens.length - 1
|
$ = tokens.length - 1
|
||||||
|
|
||||||
delimiter = quote[0]
|
delimiter = quote.charAt(0)
|
||||||
if heredoc
|
if heredoc
|
||||||
# Find the smallest indentation. It will be removed from all lines later.
|
# Find the smallest indentation. It will be removed from all lines later.
|
||||||
indent = null
|
indent = null
|
||||||
|
|
Loading…
Reference in New Issue