From 1b060045e5576451afe21a48038172ab04f9b4a4 Mon Sep 17 00:00:00 2001 From: Juan Facorro Date: Fri, 8 Aug 2014 10:54:24 -0300 Subject: [PATCH 1/2] [inaka/elvis#84] Add elipsis as a token. --- src/aleppo_parser.yrl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aleppo_parser.yrl b/src/aleppo_parser.yrl index 47967f7..9eb39d5 100644 --- a/src/aleppo_parser.yrl +++ b/src/aleppo_parser.yrl @@ -49,7 +49,7 @@ Terminals '++' '--' '==' '/=' '=<' '<' '>=' '>' '=:=' '=/=' '<=' '<<' '>>' - '!' '=' '::' '..' + '!' '=' '::' '..' '...' dot. Rootsymbol File. @@ -203,3 +203,4 @@ ExpressionToken -> '!' : '$1'. ExpressionToken -> '=' : '$1'. ExpressionToken -> '::' : '$1'. ExpressionToken -> '..' : '$1'. +ExpressionToken -> '...' : '$1'. From 5edcff85bdbcf8559e6c0c47e45fd93de97b84bd Mon Sep 17 00:00:00 2001 From: Juan Facorro Date: Fri, 8 Aug 2014 12:44:36 -0300 Subject: [PATCH 2/2] [inaka/elvis#84] Add comment as a token. --- src/aleppo_parser.yrl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aleppo_parser.yrl b/src/aleppo_parser.yrl index 9eb39d5..c1cc87d 100644 --- a/src/aleppo_parser.yrl +++ b/src/aleppo_parser.yrl @@ -50,7 +50,7 @@ Terminals '==' '/=' '=<' '<' '>=' '>' '=:=' '=/=' '<=' '<<' '>>' '!' '=' '::' '..' '...' - dot. + comment dot. Rootsymbol File. @@ -204,3 +204,4 @@ ExpressionToken -> '=' : '$1'. ExpressionToken -> '::' : '$1'. ExpressionToken -> '..' : '$1'. ExpressionToken -> '...' : '$1'. +ExpressionToken -> comment : '$1'.