Hi list.
---
set isident+=#
if 1 is# 1
echo 1
else
echo 2
endif
---
This vim script should be parsed correctly but E15 occured. Below should fix
this problem.
- mattn
diff --git a/src/eval.c b/src/eval.c
index 3650c34..4070b0f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -4429,9 +4429,11 @@ eval4(arg, rettv, evaluate)
break;
case 'i': if (p[1] == 's')
{
+ int c;
if (p[2] == 'n' && p[3] == 'o' && p[4] == 't')
len = 5;
- if (!vim_isIDc(p[len]))
+ c = p[len];
+ if (!isalnum(c) && c != '_')
{
type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL;
type_is = TRUE;
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.