For conceal mode: when two different syntax items follow each other, show the
replacement character for both.
diff --git a/src/syntax.c b/src/syntax.c
index c54984c..5880803 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1755,9 +1755,8 @@
* done.
*/
int
-get_syntax_attr(col, p_flags, can_spell, keep_state)
+get_syntax_attr(col, can_spell, keep_state)
colnr_T col;
- int *p_flags UNUSED;
int *can_spell;
int keep_state; /* keep state of char at "col" */
{
@@ -1799,10 +1798,6 @@
++current_col;
}
-#ifdef FEAT_CONCEAL
- if (p_flags != NULL)
- *p_flags = current_flags;
-#endif
return attr;
}
@@ -6332,13 +6327,27 @@
|| col < current_col)
syntax_start(wp, lnum);
- (void)get_syntax_attr(col, NULL, spellp, keep_state);
+ (void)get_syntax_attr(col, spellp, keep_state);
return (trans ? current_trans_id : current_id);
}
#if defined(FEAT_CONCEAL) || defined(PROTO)
/*
+ * Get extra information about the syntax item. Must be called right after
+ * get_syntax_attr().
+ * Stores the current item ID in "*idp".
+ * Returns the current flags.
+ */
+ int
+get_syntax_info(idp)
+ int *idp;
+{
+ *idp = current_id;
+ return current_flags;
+}
+
+/*
* Return conceal substitution character
*/
int