changed end of parsing token from eof to completed_parse
This commit is contained in:
parent
1c5f54574c
commit
6deb3160ba
5 changed files with 12 additions and 12 deletions
|
@ -33,7 +33,7 @@ decoder() ->
|
|||
decoder([]).
|
||||
|
||||
decoder(Opts) ->
|
||||
F = fun(eof, State) -> lists:reverse(State) ;(Event, State) -> [Event] ++ State end,
|
||||
F = fun(completed_parse, State) -> lists:reverse(State) ;(Event, State) -> [Event] ++ State end,
|
||||
decoder({F, []}, Opts).
|
||||
|
||||
decoder({F, _} = Callbacks, OptsList) when is_list(OptsList), is_function(F) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue