Mercurial > vim
comparison src/eval.c @ 7064:5fc5c5bf2233 v7.4.844
commit https://github.com/vim/vim/commit/37a8de17d4dfd3d463960c38a204ce399c8e19d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 1 16:05:00 2015 +0200
patch 7.4.844
Problem: When '#' is in 'isident' the is# comparator doesn't work.
Solution: Don't use vim_isIDc(). (Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 01 Sep 2015 16:15:04 +0200 |
parents | fd409a0800fd |
children | 9d4986f52df8 |
comparison
equal
deleted
inserted
replaced
7063:91d434c99f2d | 7064:5fc5c5bf2233 |
---|---|
4429 break; | 4429 break; |
4430 case 'i': if (p[1] == 's') | 4430 case 'i': if (p[1] == 's') |
4431 { | 4431 { |
4432 if (p[2] == 'n' && p[3] == 'o' && p[4] == 't') | 4432 if (p[2] == 'n' && p[3] == 'o' && p[4] == 't') |
4433 len = 5; | 4433 len = 5; |
4434 if (!vim_isIDc(p[len])) | 4434 i = p[len]; |
4435 if (!isalnum(i) && i != '_') | |
4435 { | 4436 { |
4436 type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL; | 4437 type = len == 2 ? TYPE_EQUAL : TYPE_NEQUAL; |
4437 type_is = TRUE; | 4438 type_is = TRUE; |
4438 } | 4439 } |
4439 } | 4440 } |