Permalink
Browse files

make a idents a bit more flexible

  • Loading branch information...
1 parent 85d82d9 commit a6dd094b5a5e44ff2a7a3705fe5b482961674b07 @ericbmerritt ericbmerritt committed Jan 15, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/jxa_parser.erl
View
@@ -518,10 +518,12 @@ symbol(Input, Index) ->
-spec ident(binary(), index()) -> intermediate_ast().
ident(Input, Index) ->
p(Input, Index, ident,
- p_one_or_more(
- p_and([p_not(
- p_charclass(<<"[ :;~`'\\\\,><{}/\t\n\s\r\\(\\)\\[\\]\"]">>)),
- p_anything()])),
+
+ p_seq([p_not(p_charclass(<<"[:;~`'\\\\,><{}/\t\n\s\r\\(\\)\\[\\]\"]">>)),
+ p_zero_or_more(
+ p_and([p_not(
+ p_charclass(<<"[,\\\\{}/\t\n\s\r\\(\\)\\[\\]\"]">>)),
+ p_anything()]))]),
fun(Node, Idx) ->
Result =

0 comments on commit a6dd094

Please sign in to comment.