Skip to content

Commit 57a60fb

Browse files
committed
fix triple quote indent w/ unicode error
1 parent 33ef7ca commit 57a60fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/strings.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ function parse_string_or_cmd(ps::ParseState, prefixed = false)
4040
(isempty(str) || (lcp != nothing && isempty(lcp))) && return
4141
(last && str[end] == '\n') && return (lcp = "")
4242
idxstart, idxend = 2, 1
43-
while idxend < sizeof(str) && (lcp == nothing || !isempty(lcp))
43+
while nextind(str, idxend) - 1 < sizeof(str) && (lcp == nothing || !isempty(lcp))
4444
idxend = skip_to_nl(str, idxend)
4545
idxstart = nextind(str, idxend)
46-
while idxend < sizeof(str)
46+
while nextind(str, idxend) - 1 < sizeof(str)
4747
c = str[nextind(str, idxend)]
4848
if c == ' ' || c == '\t'
4949
idxend += 1
@@ -58,7 +58,7 @@ function parse_string_or_cmd(ps::ParseState, prefixed = false)
5858
end
5959
end
6060
end
61-
if idxstart != idxend + 1
61+
if idxstart != nextind(str, idxend)
6262
prefix = str[idxstart:idxend]
6363
lcp = lcp === nothing ? prefix : longest_common_prefix(lcp, prefix)
6464
end

0 commit comments

Comments
 (0)