mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0865: syntax foldlevel is taken from the start of the line
Problem: Syntax foldlevel is taken from the start of the line. Solution: Add ":syn foldlevel" to be able to use the minimal foldlevel in the line. (Brad King, closes #6087)
This commit is contained in:
@@ -2266,6 +2266,10 @@ typedef struct
|
||||
#define SYNSPL_TOP 1 // spell check toplevel text
|
||||
#define SYNSPL_NOTOP 2 // don't spell check toplevel text
|
||||
|
||||
// values for b_syn_foldlevel: how to compute foldlevel on a line
|
||||
#define SYNFLD_START 0 // use level of item at start of line
|
||||
#define SYNFLD_MINIMUM 1 // use lowest local minimum level on line
|
||||
|
||||
// avoid #ifdefs for when b_spell is not available
|
||||
#ifdef FEAT_SPELL
|
||||
# define B_SPELL(buf) ((buf)->b_spell)
|
||||
@@ -2360,6 +2364,7 @@ typedef struct {
|
||||
int b_syn_slow; // TRUE when 'redrawtime' reached
|
||||
# endif
|
||||
int b_syn_ic; // ignore case for :syn cmds
|
||||
int b_syn_foldlevel; // how to compute foldlevel on a line
|
||||
int b_syn_spell; // SYNSPL_ values
|
||||
garray_T b_syn_patterns; // table for syntax patterns
|
||||
garray_T b_syn_clusters; // table for syntax clusters
|
||||
|
Reference in New Issue
Block a user