0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.1-215

This commit is contained in:
Bram Moolenaar
2008-01-10 21:24:39 +00:00
parent bd7cc03e57
commit 9d188ab087
5 changed files with 81 additions and 1 deletions

View File

@@ -6105,6 +6105,22 @@ syn_get_id(wp, lnum, col, trans, spellp)
return (trans ? current_trans_id : current_id);
}
#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return the syntax ID at position "i" in the current stack.
* The caller must have called syn_get_id() before to fill the stack.
* Returns -1 when "i" is out of range.
*/
int
syn_get_stack_item(i)
int i;
{
if (i >= current_state.ga_len )
return -1;
return CUR_STATE(i).si_id;
}
#endif
#if defined(FEAT_FOLDING) || defined(PROTO)
/*
* Function called to get folding level for line "lnum" in window "wp".