Mirror of the Vim source from https://github.com/vim/vim
Revision | f3669fbc9a31512a0b81fe7f647b935243a76520 (tree) |
---|---|
Zeit | 2006-09-16 03:18:09 |
Autor | vimboss |
Commiter | vimboss |
updated for version 7.0-109
@@ -8074,9 +8074,20 @@ | ||
8074 | 8074 | } |
8075 | 8075 | if (*that == '"' && *(that + 1) != NUL) |
8076 | 8076 | { |
8077 | - that++; | |
8078 | - while (*that && (*that != '"' || *(that - 1) == '\\')) | |
8079 | - ++that; | |
8077 | + while (*++that && *that != '"') | |
8078 | + { | |
8079 | + /* skipping escaped characters in the string */ | |
8080 | + if (*that == '\\') | |
8081 | + { | |
8082 | + if (*++that == NUL) | |
8083 | + break; | |
8084 | + if (that[1] == NUL) | |
8085 | + { | |
8086 | + ++that; | |
8087 | + break; | |
8088 | + } | |
8089 | + } | |
8090 | + } | |
8080 | 8091 | } |
8081 | 8092 | if (*that == '(' || *that == '[') |
8082 | 8093 | ++parencount; |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 109, | |
671 | +/**/ | |
670 | 672 | 108, |
671 | 673 | /**/ |
672 | 674 | 107, |