Skip to content

Commit ffb3931

Browse files
committed
style: 为 Lexer.cs 所有控制流添加大括号
1 parent 3f47713 commit ffb3931

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Runtime/Lexer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,18 +882,24 @@ public bool NextToken ()
882882
handler = fsm_handler_table[state - 1];
883883

884884
if (! handler (fsm_context))
885+
{
885886
throw new JsonException (input_char);
887+
}
886888

887889
if (end_of_input)
890+
{
888891
return false;
892+
}
889893

890894
if (fsm_context.Return) {
891895
string_value = string_buffer.ToString ();
892896
string_buffer.Remove (0, string_buffer.Length);
893897
token = fsm_return_table[state - 1];
894898

895899
if (token == (int) ParserToken.Char)
900+
{
896901
token = input_char;
902+
}
897903

898904
state = fsm_context.NextState;
899905

0 commit comments

Comments
 (0)