comparison src/syntax.c @ 12511:b85c981b3a8e v8.0.1134

patch 8.0.1134: superfluous call to syn_get_final_id() commit https://github.com/vim/vim/commit/76301956f0c079d893cfd927b11456328bed4f9b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 22 13:53:37 2017 +0200 patch 8.0.1134: superfluous call to syn_get_final_id() Problem: Superfluous call to syn_get_final_id(). Solution: Remove it. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Sep 2017 14:00:05 +0200
parents 7a887dccd13a
children 523162252b06
comparison
equal deleted inserted replaced
12510:7a887dccd13a 12511:b85c981b3a8e
9554 syn_name2attr(char_u *name) 9554 syn_name2attr(char_u *name)
9555 { 9555 {
9556 int id = syn_name2id(name); 9556 int id = syn_name2id(name);
9557 9557
9558 if (id != 0) 9558 if (id != 0)
9559 return syn_id2attr(syn_get_final_id(id)); 9559 return syn_id2attr(id);
9560 return 0; 9560 return 0;
9561 } 9561 }
9562 9562
9563 #if defined(FEAT_EVAL) || defined(PROTO) 9563 #if defined(FEAT_EVAL) || defined(PROTO)
9564 /* 9564 /*