Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More flexible "_" function

  • Loading branch information...
commit 8411bacda01e1928c554bf44ad49bd3a370cf0ed 1 parent 9aa03d7
Evan Miller evanmiller authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/erlydtl_parser.yrl
2  src/erlydtl_parser.yrl
View
@@ -237,6 +237,7 @@ Elements -> Elements WithBlock : '$1' ++ ['$2'].
ValueBraced -> open_var Value close_var : '$2'.
Value -> Value '|' Filter : {apply_filter, '$1', '$3'}.
+Value -> '_' '(' Value ')' : {trans, '$3'}.
Value -> Variable : '$1'.
Value -> Literal : '$1'.
@@ -373,7 +374,6 @@ Filter -> identifier : ['$1'].
Filter -> identifier ':' Literal : ['$1', '$3'].
Filter -> identifier ':' Variable : ['$1', '$3'].
-Literal -> '_' '(' string_literal ')' : {trans, '$3'}.
Literal -> string_literal : '$1'.
Literal -> number_literal : '$1'.
Please sign in to comment.
Something went wrong with that request. Please try again.