Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alisdair sullivan committed Mar 11, 2013
1 parent 1bb7c46 commit 1747f28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsx_decoder.erl
Expand Up @@ -574,6 +574,7 @@ doublequote(<<>>, Handler, Acc, [single_quote|_] = Stack, Config) ->
doublequote(<<Rest/binary>>, Handler, Acc, Stack, Config) ->
maybe_done(Rest, handle_event({string, end_seq(Acc, Config)}, Handler, Config), Stack, Config).


singlequote(<<Rest/binary>>, Handler, Acc, [single_quote, key|Stack], Config) ->
colon(Rest, handle_event({key, end_seq(Acc, Config)}, Handler, Config), [key|Stack], Config);
singlequote(<<Rest/binary>>, Handler, Acc, [single_quote|Stack], Config) ->
Expand All @@ -595,6 +596,7 @@ is_partial_utf(<<X, Y, Z>>)
true;
is_partial_utf(_) -> false.


%% strips continuation bytes after bad utf bytes, guards against both too short
%% and overlong sequences. N is the maximum number of bytes to strip
strip_continuations(<<Rest/binary>>, Handler, Acc, Stack, Config, 0) ->
Expand Down

0 comments on commit 1747f28

Please sign in to comment.