summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/search.c b/src/search.c
index 5a6a940c..c9d4b5ea 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2402,24 +2402,24 @@ check_linecomment(line)
{
if (vim_strchr(p, ';') != NULL) /* there may be comments */
{
- int instr = FALSE; /* inside of string */
+ int in_str = FALSE; /* inside of string */
p = line; /* scan from start */
while ((p = vim_strpbrk(p, (char_u *)"\";")) != NULL)
{
if (*p == '"')
{
- if (instr)
+ if (in_str)
{
if (*(p - 1) != '\\') /* skip escaped quote */
- instr = FALSE;
+ in_str = FALSE;
}
else if (p == line || ((p - line) >= 2
/* skip #\" form */
&& *(p - 1) != '\\' && *(p - 2) != '#'))
- instr = TRUE;
+ in_str = TRUE;
}
- else if (!instr && ((p - line) < 2
+ else if (!in_str && ((p - line) < 2
|| (*(p - 1) != '\\' && *(p - 2) != '#')))
break; /* found! */
++p;