mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
lint: cleanup after parent commits
This commit is contained in:
@@ -1726,14 +1726,12 @@ static int syn_current_attr(
|
||||
*/
|
||||
if (do_keywords) {
|
||||
line = syn_getcurline();
|
||||
if (vim_iswordp_buf(line + current_col, syn_buf)
|
||||
&& (current_col == 0
|
||||
|| !vim_iswordp_buf(line + current_col - 1
|
||||
- utf_head_off(line, line + current_col - 1)
|
||||
, syn_buf))) {
|
||||
syn_id = check_keyword_id(line, (int)current_col,
|
||||
&endcol, &flags, &next_list, cur_si,
|
||||
&cchar);
|
||||
const char_u *cur_pos = line + current_col;
|
||||
if (vim_iswordp_buf(cur_pos, syn_buf)
|
||||
&& (current_col == 0 || !vim_iswordp_buf(
|
||||
cur_pos - 1 - utf_head_off(line, cur_pos - 1), syn_buf))) {
|
||||
syn_id = check_keyword_id(line, (int)current_col, &endcol, &flags,
|
||||
&next_list, cur_si, &cchar);
|
||||
if (syn_id != 0) {
|
||||
push_current_state(KEYWORD_IDX);
|
||||
{
|
||||
|
Reference in New Issue
Block a user