comparison src/userfunc.c @ 23398:40f824f5c7c7 v8.2.2242

patch 8.2.2242: Vim9: bar line continuation does not work at script level Commit: https://github.com/vim/vim/commit/8242ebbdba64cfa5c504c9d8dfb802076d99c602 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 29 11:15:01 2020 +0100 patch 8.2.2242: Vim9: bar line continuation does not work at script level Problem: Vim9: line continuation with bar does not work at script level. Solution: Check for Vim9 script.
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Dec 2020 11:15:34 +0100
parents 517fca70e084
children 42294d4d4f6e
comparison
equal deleted inserted replaced
23397:0a99720fc406 23398:40f824f5c7c7
3290 3290
3291 indent = 2; 3291 indent = 2;
3292 nesting = 0; 3292 nesting = 0;
3293 nesting_def[nesting] = (eap->cmdidx == CMD_def); 3293 nesting_def[nesting] = (eap->cmdidx == CMD_def);
3294 getline_options = eap->cmdidx == CMD_def 3294 getline_options = eap->cmdidx == CMD_def
3295 ? GETLINE_CONCAT_CONTDEF : GETLINE_CONCAT_CONT; 3295 ? GETLINE_CONCAT_CONTBAR : GETLINE_CONCAT_CONT;
3296 for (;;) 3296 for (;;)
3297 { 3297 {
3298 if (KeyTyped) 3298 if (KeyTyped)
3299 { 3299 {
3300 msg_scroll = TRUE; 3300 msg_scroll = TRUE;
3366 if (STRCMP(p, skip_until) == 0) 3366 if (STRCMP(p, skip_until) == 0)
3367 { 3367 {
3368 VIM_CLEAR(skip_until); 3368 VIM_CLEAR(skip_until);
3369 VIM_CLEAR(heredoc_trimmed); 3369 VIM_CLEAR(heredoc_trimmed);
3370 getline_options = eap->cmdidx == CMD_def 3370 getline_options = eap->cmdidx == CMD_def
3371 ? GETLINE_CONCAT_CONTDEF : GETLINE_CONCAT_CONT; 3371 ? GETLINE_CONCAT_CONTBAR : GETLINE_CONCAT_CONT;
3372 is_heredoc = FALSE; 3372 is_heredoc = FALSE;
3373 } 3373 }
3374 } 3374 }
3375 } 3375 }
3376 else 3376 else