update: changed the way heredocs are parsed
This commit is contained in:
parent
8272d72997
commit
43b969183d
365 changed files with 20907 additions and 51362 deletions
|
|
@ -21,26 +21,11 @@ static const \
|
|||
t_symbols_names_array g_t_symbols_names_array = {.a = {
|
||||
[ts_builtin_sym_end] = "end",
|
||||
[sym_word] = "word",
|
||||
[anon_sym_for] = "for",
|
||||
[anon_sym_in] = "in",
|
||||
[anon_sym_while] = "while",
|
||||
[anon_sym_until] = "until",
|
||||
[anon_sym_do] = "do",
|
||||
[anon_sym_done] = "done",
|
||||
[anon_sym_if] = "if",
|
||||
[anon_sym_then] = "then",
|
||||
[anon_sym_fi] = "fi",
|
||||
[anon_sym_elif] = "elif",
|
||||
[anon_sym_else] = "else",
|
||||
[anon_sym_case] = "case",
|
||||
[anon_sym_esac] = "esac",
|
||||
[anon_sym_LPAREN] = "(",
|
||||
[anon_sym_PIPE] = "|",
|
||||
[anon_sym_RPAREN] = ")",
|
||||
[anon_sym_LF] = "\\n",
|
||||
[anon_sym_SEMI_SEMI] = ";;",
|
||||
[anon_sym_LBRACE] = "{",
|
||||
[anon_sym_RBRACE] = "}",
|
||||
[anon_sym_LPAREN] = "(",
|
||||
[anon_sym_RPAREN] = ")",
|
||||
[anon_sym_PIPE] = "|",
|
||||
[anon_sym_AMP_AMP] = "operator",
|
||||
[anon_sym_PIPE_PIPE] = "operator",
|
||||
[anon_sym_BANG] = "!",
|
||||
|
|
@ -49,7 +34,7 @@ t_symbols_names_array g_t_symbols_names_array = {.a = {
|
|||
[anon_sym_GT] = "operator",
|
||||
[anon_sym_GT_GT] = "operator",
|
||||
[anon_sym_LT_LT] = "operator",
|
||||
[aux_sym_heredoc_redirect_token1] = "heredoc_redirect_token1",
|
||||
[aux_sym_heredoc_redirect_token1] = "heredoc_delimiter",
|
||||
[anon_sym_DOLLAR_LPAREN_LPAREN] = "$((",
|
||||
[anon_sym_RPAREN_RPAREN] = "))",
|
||||
[anon_sym_PLUS] = "operator",
|
||||
|
|
@ -91,12 +76,8 @@ t_symbols_names_array g_t_symbols_names_array = {.a = {
|
|||
[anon_sym_0] = "special_variable_name",
|
||||
[aux_sym__word_no_brace_token1] = "_word_no_brace_token1",
|
||||
[anon_sym_SEMI] = ";",
|
||||
[anon_sym_LT_LT_DASH] = "<<-",
|
||||
[sym_heredoc_start] = "heredoc_start",
|
||||
[sym_simple_heredoc_body] = "heredoc_body",
|
||||
[sym__heredoc_body_beginning] = "_heredoc_body_beginning",
|
||||
[sym_heredoc_content] = "heredoc_content",
|
||||
[sym_heredoc_end] = "heredoc_end",
|
||||
[anon_sym_SEMI_SEMI] = ";;",
|
||||
[aux_sym_terminator_token1] = "terminator_token1",
|
||||
[sym_file_descriptor] = "file_descriptor",
|
||||
[sym__empty_value] = "_empty_value",
|
||||
[sym__concat] = "_concat",
|
||||
|
|
@ -112,16 +93,6 @@ t_symbols_names_array g_t_symbols_names_array = {.a = {
|
|||
[aux_sym__terminated_statement] = "_terminated_statement",
|
||||
[sym__statement_not_pipeline] = "_statement_not_pipeline",
|
||||
[sym_redirected_statement] = "redirected_statement",
|
||||
[sym_for_statement] = "for_statement",
|
||||
[sym_while_statement] = "while_statement",
|
||||
[sym_do_group] = "do_group",
|
||||
[sym_if_statement] = "if_statement",
|
||||
[sym_elif_clause] = "elif_clause",
|
||||
[sym_else_clause] = "else_clause",
|
||||
[sym_case_statement] = "case_statement",
|
||||
[sym__case_item_last] = "case_item",
|
||||
[sym_case_item] = "case_item",
|
||||
[sym_function_definition] = "function_definition",
|
||||
[sym_compound_statement] = "compound_statement",
|
||||
[sym_subshell] = "subshell",
|
||||
[sym_pipeline] = "pipeline",
|
||||
|
|
@ -133,12 +104,6 @@ t_symbols_names_array g_t_symbols_names_array = {.a = {
|
|||
[sym__variable_assignments] = "_variable_assignments",
|
||||
[sym_file_redirect] = "file_redirect",
|
||||
[sym_heredoc_redirect] = "heredoc_redirect",
|
||||
[sym__heredoc_pipeline] = "pipeline",
|
||||
[sym__heredoc_expression] = "_heredoc_expression",
|
||||
[aux_sym__heredoc_command] = "_heredoc_command",
|
||||
[sym__heredoc_body] = "_heredoc_body",
|
||||
[sym_heredoc_body] = "heredoc_body",
|
||||
[sym__simple_heredoc_body] = "_simple_heredoc_body",
|
||||
[sym_arithmetic_expansion] = "arithmetic_expansion",
|
||||
[sym__arithmetic_expression] = "_arithmetic_expression",
|
||||
[sym_arithmetic_literal] = "arithmetic_literal",
|
||||
|
|
@ -156,22 +121,16 @@ t_symbols_names_array g_t_symbols_names_array = {.a = {
|
|||
[sym__expansion_regex] = "_expansion_regex",
|
||||
[sym__concatenation_in_expansion] = "concatenation",
|
||||
[sym_command_substitution] = "command_substitution",
|
||||
[sym__extglob_blob] = "_extglob_blob",
|
||||
[sym__word_no_brace] = "word2",
|
||||
[sym_terminator] = "terminator",
|
||||
[aux_sym__statements_repeat1] = "_statements_repeat1",
|
||||
[aux_sym_redirected_statement_repeat1] = "redirected_statement_repeat1",
|
||||
[aux_sym_redirected_statement_repeat2] = "redirected_statement_repeat2",
|
||||
[aux_sym_for_statement_repeat1] = "for_statement_repeat1",
|
||||
[aux_sym_if_statement_repeat1] = "if_statement_repeat1",
|
||||
[aux_sym_case_statement_repeat1] = "case_statement_repeat1",
|
||||
[aux_sym__case_item_last_repeat1] = "_case_item_last_repeat1",
|
||||
[aux_sym__case_item_last_repeat2] = "_case_item_last_repeat2",
|
||||
[aux_sym_pipeline_repeat1] = "pipeline_repeat1",
|
||||
[aux_sym_command_repeat1] = "command_repeat1",
|
||||
[aux_sym_command_repeat2] = "command_repeat2",
|
||||
[aux_sym__variable_assignments_repeat1] = "_variable_assignments_repeat1",
|
||||
[aux_sym_heredoc_body_repeat1] = "heredoc_body_repeat1",
|
||||
[aux_sym_file_redirect_repeat1] = "file_redirect_repeat1",
|
||||
[aux_sym_concatenation_repeat1] = "concatenation_repeat1",
|
||||
[aux_sym_string_repeat1] = "string_repeat1",
|
||||
[aux_sym__expansion_regex_repeat1] = "_expansion_regex_repeat1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue