whitespace
This commit is contained in:
parent
1bb7c46120
commit
1747f28377
1 changed files with 2 additions and 0 deletions
|
@ -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) ->
|
||||
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue