forked from aniani/vim
patch 8.0.0481: unnecessary if statement
Problem: Unnecessary if statement. Solution: Remove the statement. Fix "it's" vs "its" mistakes. (Dominique Pelle, closes #1568)
This commit is contained in:
parent
15e737f768
commit
aab93b12cb
19
src/syntax.c
19
src/syntax.c
@ -1782,8 +1782,6 @@ syn_finish_line(
|
||||
stateitem_T *cur_si;
|
||||
colnr_T prev_current_col;
|
||||
|
||||
if (!current_finished)
|
||||
{
|
||||
while (!current_finished)
|
||||
{
|
||||
(void)syn_current_attr(syncing, FALSE, NULL, FALSE);
|
||||
@ -1812,7 +1810,6 @@ syn_finish_line(
|
||||
}
|
||||
++current_col;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -3333,7 +3330,7 @@ syn_regexec(
|
||||
/*
|
||||
* Check one position in a line for a matching keyword.
|
||||
* The caller must check if a keyword can start at startcol.
|
||||
* Return it's ID if found, 0 otherwise.
|
||||
* Return its ID if found, 0 otherwise.
|
||||
*/
|
||||
static int
|
||||
check_keyword_id(
|
||||
@ -5495,7 +5492,7 @@ syn_combine_list(short **clstr1, short **clstr2, int list_op)
|
||||
}
|
||||
|
||||
/*
|
||||
* Lookup a syntax cluster name and return it's ID.
|
||||
* Lookup a syntax cluster name and return its ID.
|
||||
* If it is not found, 0 is returned.
|
||||
*/
|
||||
static int
|
||||
@ -5535,7 +5532,7 @@ syn_scl_namen2id(char_u *linep, int len)
|
||||
}
|
||||
|
||||
/*
|
||||
* Find syntax cluster name in the table and return it's ID.
|
||||
* Find syntax cluster name in the table and return its ID.
|
||||
* The argument is a pointer to the name and the length of the name.
|
||||
* If it doesn't exist yet, a new entry is created.
|
||||
* Return 0 for failure.
|
||||
@ -5559,7 +5556,7 @@ syn_check_cluster(char_u *pp, int len)
|
||||
}
|
||||
|
||||
/*
|
||||
* Add new syntax cluster and return it's ID.
|
||||
* Add new syntax cluster and return its ID.
|
||||
* "name" must be an allocated string, it will be consumed.
|
||||
* Return 0 for failure.
|
||||
*/
|
||||
@ -7752,7 +7749,7 @@ do_highlight(
|
||||
break;
|
||||
}
|
||||
|
||||
/* Use the _16 table to check if its a valid color name. */
|
||||
/* Use the _16 table to check if it's a valid color name. */
|
||||
color = color_numbers_16[i];
|
||||
if (color >= 0)
|
||||
{
|
||||
@ -9346,7 +9343,7 @@ set_hl_attr(
|
||||
}
|
||||
|
||||
/*
|
||||
* Lookup a highlight group name and return it's ID.
|
||||
* Lookup a highlight group name and return its ID.
|
||||
* If it is not found, 0 is returned.
|
||||
*/
|
||||
int
|
||||
@ -9411,7 +9408,7 @@ syn_namen2id(char_u *linep, int len)
|
||||
}
|
||||
|
||||
/*
|
||||
* Find highlight group name in the table and return it's ID.
|
||||
* Find highlight group name in the table and return its ID.
|
||||
* The argument is a pointer to the name and the length of the name.
|
||||
* If it doesn't exist yet, a new entry is created.
|
||||
* Return 0 for failure.
|
||||
@ -9435,7 +9432,7 @@ syn_check_group(char_u *pp, int len)
|
||||
}
|
||||
|
||||
/*
|
||||
* Add new highlight group and return it's ID.
|
||||
* Add new highlight group and return its ID.
|
||||
* "name" must be an allocated string, it will be consumed.
|
||||
* Return 0 for failure.
|
||||
*/
|
||||
|
@ -764,6 +764,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
481,
|
||||
/**/
|
||||
480,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user