Mercurial > vim
changeset 983:f3669fbc9a31 v7.0.109
updated for version 7.0-109
author | vimboss |
---|---|
date | Fri, 15 Sep 2006 18:18:09 +0000 |
parents | b00d5f429a4b |
children | fa9ee618000f |
files | src/misc1.c src/version.c |
diffstat | 2 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc1.c +++ b/src/misc1.c @@ -8074,9 +8074,20 @@ get_lisp_indent() } if (*that == '"' && *(that + 1) != NUL) { - that++; - while (*that && (*that != '"' || *(that - 1) == '\\')) - ++that; + while (*++that && *that != '"') + { + /* skipping escaped characters in the string */ + if (*that == '\\') + { + if (*++that == NUL) + break; + if (that[1] == NUL) + { + ++that; + break; + } + } + } } if (*that == '(' || *that == '[') ++parencount;