summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/curly_lexer.mll2
-rw-r--r--src/curly_parser.mly2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/curly_lexer.mll b/src/curly_lexer.mll
index 8086648..6254358 100644
--- a/src/curly_lexer.mll
+++ b/src/curly_lexer.mll
@@ -19,7 +19,7 @@ rule token = parse
{ RIGHT_BRACKET }
| ';'
{ SEMI }
-| ['a' - 'z' 'A' - 'Z' '0' - '9' '-' '.' ]+ as s
+| ['a' -'z' 'A' - 'Z' '0' - '9' '.' '/' ':' '@' '$' '-' ]+ as s
{ IDENTIFIER s}
| eof
{ EOF }
diff --git a/src/curly_parser.mly b/src/curly_parser.mly
index 047277a..896f5c0 100644
--- a/src/curly_parser.mly
+++ b/src/curly_parser.mly
@@ -17,7 +17,7 @@
opt_comment:
| (* empty *) { None }
- | c = COMMENT { Some c }
+ | c = COMMENT { Some (String.trim c) }
value:
| v = STRING