Change the alias from id() to con()
This commit is contained in:
parent
53ba62e423
commit
2d450397f4
@ -137,12 +137,12 @@ fundef_or_decl() ->
|
|||||||
fundef()]).
|
fundef()]).
|
||||||
|
|
||||||
using() ->
|
using() ->
|
||||||
?RULE(keyword(using), con(), optional({keyword(as), id()}), using(get_ann(_1), _2, _3)).
|
?RULE(keyword(using), con(), optional({keyword(as), con()}), using(get_ann(_1), _2, _3)).
|
||||||
|
|
||||||
using(Ann, Con, none) ->
|
using(Ann, Con, none) ->
|
||||||
{using, Ann, Con};
|
{using, Ann, Con};
|
||||||
using(Ann, Con, {ok, {_, Id}}) ->
|
using(Ann, Con, {ok, {_, Alias}}) ->
|
||||||
{using, Ann, Con, Id}.
|
{using, Ann, Con, Alias}.
|
||||||
|
|
||||||
pragma() ->
|
pragma() ->
|
||||||
Op = choice([token(T) || T <- ['<', '=<', '==', '>=', '>']]),
|
Op = choice([token(T) || T <- ['<', '=<', '==', '>=', '>']]),
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
-type pragma() :: {compiler, '==' | '<' | '>' | '=<' | '>=', compiler_version()}.
|
-type pragma() :: {compiler, '==' | '<' | '>' | '=<' | '>=', compiler_version()}.
|
||||||
|
|
||||||
-type using() :: {using, ann(), con()}
|
-type using() :: {using, ann(), con()}
|
||||||
| {using, ann(), con(), id()}.
|
| {using, ann(), con(), con()}.
|
||||||
|
|
||||||
-type letval() :: {letval, ann(), pat(), expr()}.
|
-type letval() :: {letval, ann(), pat(), expr()}.
|
||||||
-type letfun() :: {letfun, ann(), id(), [pat()], type(), expr()}.
|
-type letfun() :: {letfun, ann(), id(), [pat()], type(), expr()}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user