Mercurial > vim
comparison src/syntax.c @ 1500:ea9f418ed072 v7.1.215
updated for version 7.1-215
author | vimboss |
---|---|
date | Thu, 10 Jan 2008 21:24:39 +0000 |
parents | 8ac6392acb0a |
children | 995536cad50e |
comparison
equal
deleted
inserted
replaced
1499:75c88515e0db | 1500:ea9f418ed072 |
---|---|
6103 (void)get_syntax_attr(col, spellp); | 6103 (void)get_syntax_attr(col, spellp); |
6104 | 6104 |
6105 return (trans ? current_trans_id : current_id); | 6105 return (trans ? current_trans_id : current_id); |
6106 } | 6106 } |
6107 | 6107 |
6108 #if defined(FEAT_EVAL) || defined(PROTO) | |
6109 /* | |
6110 * Return the syntax ID at position "i" in the current stack. | |
6111 * The caller must have called syn_get_id() before to fill the stack. | |
6112 * Returns -1 when "i" is out of range. | |
6113 */ | |
6114 int | |
6115 syn_get_stack_item(i) | |
6116 int i; | |
6117 { | |
6118 if (i >= current_state.ga_len ) | |
6119 return -1; | |
6120 return CUR_STATE(i).si_id; | |
6121 } | |
6122 #endif | |
6123 | |
6108 #if defined(FEAT_FOLDING) || defined(PROTO) | 6124 #if defined(FEAT_FOLDING) || defined(PROTO) |
6109 /* | 6125 /* |
6110 * Function called to get folding level for line "lnum" in window "wp". | 6126 * Function called to get folding level for line "lnum" in window "wp". |
6111 */ | 6127 */ |
6112 int | 6128 int |