comparison src/syntax.c @ 1363:3328b87305ef v7.1.077

updated for version 7.1-077
author vimboss
date Tue, 14 Aug 2007 21:07:36 +0000
parents 22886f3d882d
children e8450dbf6f03
comparison
equal deleted inserted replaced
1362:2f70b8f1f1e3 1363:3328b87305ef
1724 get_syntax_attr(col, can_spell) 1724 get_syntax_attr(col, can_spell)
1725 colnr_T col; 1725 colnr_T col;
1726 int *can_spell; 1726 int *can_spell;
1727 { 1727 {
1728 int attr = 0; 1728 int attr = 0;
1729
1730 if (can_spell != NULL)
1731 /* Default: Only do spelling when there is no @Spell cluster or when
1732 * ":syn spell toplevel" was used. */
1733 *can_spell = syn_buf->b_syn_spell == SYNSPL_DEFAULT
1734 ? (syn_buf->b_spell_cluster_id == 0)
1735 : (syn_buf->b_syn_spell == SYNSPL_TOP);
1729 1736
1730 /* check for out of memory situation */ 1737 /* check for out of memory situation */
1731 if (syn_buf->b_sst_array == NULL) 1738 if (syn_buf->b_sst_array == NULL)
1732 return 0; 1739 return 0;
1733 1740