comparison src/charset.c @ 28942:6cdf55afaae9 v8.2.4993

patch 8.2.4993: smart/C/lisp indenting is optional Commit: https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 20:17:31 2022 +0100 patch 8.2.4993: smart/C/lisp indenting is optional Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 21:30:04 +0200
parents d770568e6c98
children 8973f2f00872
comparison
equal deleted inserted replaced
28941:f17de8647585 28942:6cdf55afaae9
127 // double-byte characters are probably word characters 127 // double-byte characters are probably word characters
128 if (MB_BYTE2LEN(c) == 2) 128 if (MB_BYTE2LEN(c) == 2)
129 SET_CHARTAB(buf, c); 129 SET_CHARTAB(buf, c);
130 } 130 }
131 131
132 #ifdef FEAT_LISP
133 /* 132 /*
134 * In lisp mode the '-' character is included in keywords. 133 * In lisp mode the '-' character is included in keywords.
135 */ 134 */
136 if (buf->b_p_lisp) 135 if (buf->b_p_lisp)
137 SET_CHARTAB(buf, '-'); 136 SET_CHARTAB(buf, '-');
138 #endif
139 137
140 // Walk through the 'isident', 'iskeyword', 'isfname' and 'isprint' 138 // Walk through the 'isident', 'iskeyword', 'isfname' and 'isprint'
141 // options Each option is a list of characters, character numbers or 139 // options Each option is a list of characters, character numbers or
142 // ranges, separated by commas, e.g.: "200-210,x,#-178,-" 140 // ranges, separated by commas, e.g.: "200-210,x,#-178,-"
143 for (i = global ? 0 : 3; i <= 3; ++i) 141 for (i = global ? 0 : 3; i <= 3; ++i)