whitespace

This commit is contained in:
alisdair sullivan 2013-03-10 19:49:46 -07:00
parent 1bb7c46120
commit 1747f28377

View file

@ -574,6 +574,7 @@ doublequote(<<>>, Handler, Acc, [single_quote|_] = Stack, Config) ->
doublequote(<<Rest/binary>>, Handler, Acc, Stack, Config) -> doublequote(<<Rest/binary>>, Handler, Acc, Stack, Config) ->
maybe_done(Rest, handle_event({string, end_seq(Acc, Config)}, Handler, Config), 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) -> singlequote(<<Rest/binary>>, Handler, Acc, [single_quote, key|Stack], Config) ->
colon(Rest, handle_event({key, end_seq(Acc, Config)}, Handler, Config), [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) -> singlequote(<<Rest/binary>>, Handler, Acc, [single_quote|Stack], Config) ->
@ -595,6 +596,7 @@ is_partial_utf(<<X, Y, Z>>)
true; true;
is_partial_utf(_) -> false. is_partial_utf(_) -> false.
%% strips continuation bytes after bad utf bytes, guards against both too short %% strips continuation bytes after bad utf bytes, guards against both too short
%% and overlong sequences. N is the maximum number of bytes to strip %% and overlong sequences. N is the maximum number of bytes to strip
strip_continuations(<<Rest/binary>>, Handler, Acc, Stack, Config, 0) -> strip_continuations(<<Rest/binary>>, Handler, Acc, Stack, Config, 0) ->