msgstr ""
"Project-Id-Version: Vim\n"
"Report-Msgid-Bugs-To: vim-dev@vim.org\n"
-"POT-Creation-Date: 2026-06-22 19:36+0000\n"
+"POT-Creation-Date: 2026-06-24 17:52+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "syncing on C-style comments"
msgstr ""
-msgid "no syncing"
+msgid ""
+"\n"
+"--- Syntax sync items ---"
msgstr ""
-msgid "syncing starts at the first line"
+msgid ""
+"\n"
+"syncing on items"
msgstr ""
-msgid "syncing starts "
+msgid "no syncing"
msgstr ""
-msgid " lines before top line"
+msgid "syncing starts at the first line"
msgstr ""
-msgid ""
-"\n"
-"--- Syntax sync items ---"
+msgid "syncing starts "
msgstr ""
-msgid ""
-"\n"
-"syncing on items"
+msgid " lines before top line"
msgstr ""
msgid ""
msg_puts(_("syncing on C-style comments"));
syn_lines_msg();
syn_match_msg();
- return;
}
- else if (!(curwin->w_s->b_syn_sync_flags & SF_MATCH))
+ else if (curwin->w_s->b_syn_sync_flags & SF_MATCH)
+ {
+ msg_puts_title(_("\n--- Syntax sync items ---"));
+ if (curwin->w_s->b_syn_sync_minlines > 0
+ || curwin->w_s->b_syn_sync_maxlines > 0
+ || curwin->w_s->b_syn_sync_linebreaks > 0)
+ {
+ msg_puts(_("\nsyncing on items"));
+ syn_lines_msg();
+ syn_match_msg();
+ }
+ for (id = 1; id <= highlight_num_groups() && !got_int; ++id)
+ syn_list_one(id, syncing, FALSE);
+ }
+ else
{
if (curwin->w_s->b_syn_sync_minlines == 0)
msg_puts(_("no syncing"));
}
syn_match_msg();
}
- return;
- }
- msg_puts_title(_("\n--- Syntax sync items ---"));
- if (curwin->w_s->b_syn_sync_minlines > 0
- || curwin->w_s->b_syn_sync_maxlines > 0
- || curwin->w_s->b_syn_sync_linebreaks > 0)
- {
- msg_puts(_("\nsyncing on items"));
- syn_lines_msg();
- syn_match_msg();
}
+ return;
}
- else
- msg_puts_title(_("\n--- Syntax items ---"));
+
+ msg_puts_title(_("\n--- Syntax items ---"));
if (ends_excmd2(eap->cmd, arg))
{
/*
call assert_match('SyncHere', execute('syntax sync'))
syn sync clear
call assert_notmatch('SyncHere', execute('syntax sync'))
+
+ syn sync minlines=10
+ syntax cluster xmlStuff contains=xmlGroup1,xmlGroup2
+ syntax region xmlComment start=/<!--/ end=/-->/ keepend contains=@Spell
+ syntax sync match xmlSync1 grouphere xmlComment /<!--/
+ syntax sync match xmlSync2 groupthere NONE /-->/
+ syntax cluster xmlAll contains=ALL
+ let out = execute('syntax sync')
+ call assert_match('xmlSync1', out)
+ call assert_match('xmlSync2', out)
+ call assert_match('grouphere xmlComment', out)
+ call assert_match('groupthere NONE', out)
+ call assert_notmatch('xmlStuff', out)
+ call assert_notmatch('xmlAll', out)
+ call assert_notmatch('cluster', out)
+ call assert_notmatch('keepend', out)
+ " should output 4 lines: 1 header + 3 syn sync lines
+ call assert_equal(4, len(split(out, '\n')))
+
syn clear
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 718,
/**/
717,
/**/