Skip to content

Commit

Permalink
Merge pull request erlydtl#12 from doucette/patch-1
Browse files Browse the repository at this point in the history
Fix position after }}--> and %}-->
  • Loading branch information
evanmiller committed May 15, 2011
2 parents 7b2309e + 264517f commit 5a93e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erlydtl_scanner.erl 100755 → 100644
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 5a93e5b

Please sign in to comment.