Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove no longer valid definition from ident parser

  • Loading branch information...
commit 3330b35fe428c838eddbf908c6ee86586a08644f 1 parent 4f91cde
@ericbmerritt ericbmerritt authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/jxa_parser.erl
View
12 src/jxa_parser.erl
@@ -473,14 +473,14 @@ symbol(Input, Index) ->
{quote, Result, Idx}
end).
+%% done
-spec ident(binary(), index()) -> intermediate_ast().
ident(Input, Index) ->
p(Input, Index, ident,
- p_choose([p_string("/"),
- p_one_or_more(
- p_and([p_not(
- p_charclass(<<"[ :;~`'\\\\,><{}/\t\n\s\r\\(\\)\\[\\]\"]">>)),
- p_anything()]))]),
+ p_one_or_more(
+ p_and([p_not(
+ p_charclass(<<"[ :;~`'\\\\,><{}/\t\n\s\r\\(\\)\\[\\]\"]">>)),
+ p_anything()])),
fun(Node, Idx) ->
Result =
@@ -742,8 +742,6 @@ string_test() ->
value(<<"\"Hello\t World\"">>, index()))).
ident_test() ->
- ?memo(?assertMatch({{ident, '/', {1, _}}, <<>>, _},
- value(<<"/">>, index()))),
?memo(?assertMatch({{ident, 'true', {1, _}}, <<>>, _}, value(<<"true">>, index()))),
?memo(?assertMatch({{ident, 'false', {1, _}}, <<>>, _},value(<<"false">>, index()))),
?memo(?assertMatch({{quote, {ident, 'keyword', _}, {1, _}}, <<>>, _},
Please sign in to comment.
Something went wrong with that request. Please try again.