mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
syntax: use const on put_id_list() variables
This commit is contained in:
parent
b647ba6afb
commit
9229f7a05d
@ -3695,15 +3695,13 @@ static void syn_list_cluster(int id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void put_id_list(const char *name,
|
static void put_id_list(const char *const name,
|
||||||
short *list, // NOLINT(runtime/int)
|
const int16_t *const list,
|
||||||
int attr)
|
const int attr)
|
||||||
{
|
{
|
||||||
short *p;
|
|
||||||
|
|
||||||
msg_puts_attr(name, attr);
|
msg_puts_attr(name, attr);
|
||||||
msg_putchar('=');
|
msg_putchar('=');
|
||||||
for (p = list; *p; ++p) {
|
for (const int16_t *p = list; *p; p++) {
|
||||||
if (*p >= SYNID_ALLBUT && *p < SYNID_TOP) {
|
if (*p >= SYNID_ALLBUT && *p < SYNID_TOP) {
|
||||||
if (p[1]) {
|
if (p[1]) {
|
||||||
msg_puts("ALLBUT");
|
msg_puts("ALLBUT");
|
||||||
|
Loading…
Reference in New Issue
Block a user