Skip to content
Browse files

Fix position after }}--> and %}-->

  • Loading branch information...
1 parent 7b2309e commit 264517f402e1a81fb77fc0a03951736fa1d7e5df @doucette doucette committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/erlydtl_scanner.erl
View
4 src/erlydtl_scanner.erl 100755 → 100644
@@ -200,14 +200,14 @@ scan([H | T], Scanned, {Row, Column}, {in_single_quote, Closer}) ->
scan("}}-->" ++ T, Scanned, {Row, Column}, {_, "}}-->"}) ->
scan(T, [{close_var, {Row, Column}, '}}-->'} | Scanned],
- {Row, Column + 2}, in_text);
+ {Row, Column + length("}}-->")}, in_text);
scan("}}" ++ T, Scanned, {Row, Column}, {_, "}}"}) ->
scan(T, [{close_var, {Row, Column}, '}}'} | Scanned], {Row, Column + 2}, in_text);
scan("%}-->" ++ T, Scanned, {Row, Column}, {_, "%}-->"}) ->
scan(T, [{close_tag, {Row, Column}, '%}-->'} | Scanned],
- {Row, Column + 2}, in_text);
+ {Row, Column + length("%}-->")}, in_text);
scan("%}" ++ T, Scanned, {Row, Column}, {_, "%}"}) ->
scan(T, [{close_tag, {Row, Column}, '%}'} | Scanned],

0 comments on commit 264517f

Please sign in to comment.
Something went wrong with that request. Please try again.