From 80250c0729d382aa60b4c6ff6210b66b470ad40b Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Mon, 2 May 2016 17:22:44 -0700 Subject: restyle parser module to match project style Reduces lint errors from 72 to 44 (-43%). Line count from 1698 to 1313 (-23%). Another step in resolving issue #2902. --- src/parse_constants.h | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'src/parse_constants.h') diff --git a/src/parse_constants.h b/src/parse_constants.h index c43ba7de..01580d15 100644 --- a/src/parse_constants.h +++ b/src/parse_constants.h @@ -268,49 +268,4 @@ void parse_error_offset_source_start(parse_error_list_t *errors, size_t amt); #define ERROR_BAD_COMMAND_ASSIGN_ERR_MSG \ _(L"Unsupported use of '='. In fish, please use 'set %ls %ls'.") -/// While block description. -#define WHILE_BLOCK N_(L"'while' block") - -/// For block description. -#define FOR_BLOCK N_(L"'for' block") - -/// Breakpoint block. -#define BREAKPOINT_BLOCK N_(L"Block created by breakpoint") - -/// If block description. -#define IF_BLOCK N_(L"'if' conditional block") - -/// Function definition block description. -#define FUNCTION_DEF_BLOCK N_(L"function definition block") - -/// Function invocation block description. -#define FUNCTION_CALL_BLOCK N_(L"function invocation block") - -/// Function invocation block description. -#define FUNCTION_CALL_NO_SHADOW_BLOCK N_(L"function invocation block with no variable shadowing") - -/// Switch block description. -#define SWITCH_BLOCK N_(L"'switch' block") - -/// Fake block description. -#define FAKE_BLOCK N_(L"unexecutable block") - -/// Top block description. -#define TOP_BLOCK N_(L"global root block") - -/// Command substitution block description. -#define SUBST_BLOCK N_(L"command substitution block") - -/// Begin block description. -#define BEGIN_BLOCK N_(L"'begin' unconditional block") - -/// Source block description. -#define SOURCE_BLOCK N_(L"Block created by the . builtin") - -/// Source block description. -#define EVENT_BLOCK N_(L"event handler block") - -/// Unknown block description. -#define UNKNOWN_BLOCK N_(L"unknown/invalid block") - #endif -- cgit v1.2.3