comparison src/syntax.c @ 27752:c1d1639b52dd v8.2.4402

patch 8.2.4402: missing parenthesis may cause unexpected problems Commit: https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83 Author: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Wed Feb 16 19:24:07 2022 +0000 patch 8.2.4402: missing parenthesis may cause unexpected problems Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes https://github.com/vim/vim/issues/9788)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 20:30:03 +0100
parents c796016c6204
children 49631bf057d3
comparison
equal deleted inserted replaced
27751:c9330d10419b 27752:c1d1639b52dd
79 #define SPTYPE_SKIP 4 // match a regexp, skip within item 79 #define SPTYPE_SKIP 4 // match a regexp, skip within item
80 80
81 81
82 #define SYN_ITEMS(buf) ((synpat_T *)((buf)->b_syn_patterns.ga_data)) 82 #define SYN_ITEMS(buf) ((synpat_T *)((buf)->b_syn_patterns.ga_data))
83 83
84 #define NONE_IDX -2 // value of sp_sync_idx for "NONE" 84 #define NONE_IDX (-2) // value of sp_sync_idx for "NONE"
85 85
86 /* 86 /*
87 * Flags for b_syn_sync_flags: 87 * Flags for b_syn_sync_flags:
88 */ 88 */
89 #define SF_CCOMMENT 0x01 // sync on a C-style comment 89 #define SF_CCOMMENT 0x01 // sync on a C-style comment
205 short *si_next_list; // nextgroup IDs after this item ends 205 short *si_next_list; // nextgroup IDs after this item ends
206 reg_extmatch_T *si_extmatch; // \z(...\) matches from start 206 reg_extmatch_T *si_extmatch; // \z(...\) matches from start
207 // pattern 207 // pattern
208 } stateitem_T; 208 } stateitem_T;
209 209
210 #define KEYWORD_IDX -1 // value of si_idx for keywords 210 #define KEYWORD_IDX (-1) // value of si_idx for keywords
211 #define ID_LIST_ALL (short *)-1 // valid of si_cont_list for containing all 211 #define ID_LIST_ALL ((short *)-1) // valid of si_cont_list for containing all
212 // but contained groups 212 // but contained groups
213 213
214 #ifdef FEAT_CONCEAL 214 #ifdef FEAT_CONCEAL
215 static int next_seqnr = 1; // value to use for si_seqnr 215 static int next_seqnr = 1; // value to use for si_seqnr
216 #endif 216 #endif