comparison src/structs.h @ 20623:99b6e6bf48bf v8.2.0865

patch 8.2.0865: syntax foldlevel is taken from the start of the line Commit: https://github.com/vim/vim/commit/e35a52aee718c881bdfa69a47a1068df6ab6c60a Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 31 19:48:53 2020 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 May 2020 20:00:04 +0200
parents d30b16692ce0
children d91b8d1e5198
comparison
equal deleted inserted replaced
20622:d487701a608e 20623:99b6e6bf48bf
2264 // values for b_syn_spell: what to do with toplevel text 2264 // values for b_syn_spell: what to do with toplevel text
2265 #define SYNSPL_DEFAULT 0 // spell check if @Spell not defined 2265 #define SYNSPL_DEFAULT 0 // spell check if @Spell not defined
2266 #define SYNSPL_TOP 1 // spell check toplevel text 2266 #define SYNSPL_TOP 1 // spell check toplevel text
2267 #define SYNSPL_NOTOP 2 // don't spell check toplevel text 2267 #define SYNSPL_NOTOP 2 // don't spell check toplevel text
2268 2268
2269 // values for b_syn_foldlevel: how to compute foldlevel on a line
2270 #define SYNFLD_START 0 // use level of item at start of line
2271 #define SYNFLD_MINIMUM 1 // use lowest local minimum level on line
2272
2269 // avoid #ifdefs for when b_spell is not available 2273 // avoid #ifdefs for when b_spell is not available
2270 #ifdef FEAT_SPELL 2274 #ifdef FEAT_SPELL
2271 # define B_SPELL(buf) ((buf)->b_spell) 2275 # define B_SPELL(buf) ((buf)->b_spell)
2272 #else 2276 #else
2273 # define B_SPELL(buf) (0) 2277 # define B_SPELL(buf) (0)
2358 int b_syn_error; // TRUE when error occurred in HL 2362 int b_syn_error; // TRUE when error occurred in HL
2359 # ifdef FEAT_RELTIME 2363 # ifdef FEAT_RELTIME
2360 int b_syn_slow; // TRUE when 'redrawtime' reached 2364 int b_syn_slow; // TRUE when 'redrawtime' reached
2361 # endif 2365 # endif
2362 int b_syn_ic; // ignore case for :syn cmds 2366 int b_syn_ic; // ignore case for :syn cmds
2367 int b_syn_foldlevel; // how to compute foldlevel on a line
2363 int b_syn_spell; // SYNSPL_ values 2368 int b_syn_spell; // SYNSPL_ values
2364 garray_T b_syn_patterns; // table for syntax patterns 2369 garray_T b_syn_patterns; // table for syntax patterns
2365 garray_T b_syn_clusters; // table for syntax clusters 2370 garray_T b_syn_clusters; // table for syntax clusters
2366 int b_spell_cluster_id; // @Spell cluster ID or 0 2371 int b_spell_cluster_id; // @Spell cluster ID or 0
2367 int b_nospell_cluster_id; // @NoSpell cluster ID or 0 2372 int b_nospell_cluster_id; // @NoSpell cluster ID or 0