1
0
forked from aniani/vim

patch 9.0.1454: code indenting is confused by macros

Problem:    Code indenting is confused by macros.
Solution:   Put semicolon after the macros instead of inside. (Ozaki Kiichi,
            closes #12257)
This commit is contained in:
ichizok
2023-04-15 13:17:50 +01:00
committed by Bram Moolenaar
parent b49dfd0cf2
commit 7e5fe38efc
10 changed files with 66 additions and 56 deletions

View File

@@ -1450,14 +1450,6 @@ do_source_ext(
char_u *firstline = NULL;
int retval = FAIL;
sctx_T save_current_sctx;
#ifdef FEAT_EVAL
funccal_entry_T funccalp_entry;
int save_debug_break_level = debug_break_level;
int sid = -1;
scriptitem_T *si = NULL;
int save_estack_compiling = estack_compiling;
ESTACK_CHECK_DECLARATION
#endif
#ifdef STARTUPTIME
struct timeval tv_rel;
struct timeval tv_start;
@@ -1467,6 +1459,14 @@ do_source_ext(
#endif
int save_sticky_cmdmod_flags = sticky_cmdmod_flags;
int trigger_source_post = FALSE;
#ifdef FEAT_EVAL
funccal_entry_T funccalp_entry;
int save_debug_break_level = debug_break_level;
int sid = -1;
scriptitem_T *si = NULL;
int save_estack_compiling = estack_compiling;
ESTACK_CHECK_DECLARATION;
#endif
CLEAR_FIELD(cookie);
if (fname == NULL)
@@ -1711,7 +1711,7 @@ do_source_ext(
// Keep the sourcing name/lnum, for recursive calls.
estack_push(ETYPE_SCRIPT, si->sn_name, 0);
ESTACK_CHECK_SETUP
ESTACK_CHECK_SETUP;
# ifdef FEAT_PROFILE
if (do_profiling == PROF_YES)
@@ -1780,7 +1780,7 @@ do_source_ext(
if (got_int)
emsg(_(e_interrupted));
#ifdef FEAT_EVAL
ESTACK_CHECK_NOW
ESTACK_CHECK_NOW;
#endif
estack_pop();
if (p_verbose > 1)