Skip to content

Commit

Permalink
Fix position after }}--> and %}-->
Browse files Browse the repository at this point in the history
  • Loading branch information
doucette committed May 15, 2011
1 parent 7b2309e commit 264517f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlydtl_scanner.erl
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 264517f

Please sign in to comment.