diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-09-15 18:18:09 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-09-15 18:18:09 +0000 |
commit | 15ff6c19406f0248146a16490b28f029c463c460 (patch) | |
tree | 6909600c85482f291c12746b180c288a34eae885 /src/misc1.c | |
parent | e38536441c2a32e2e490fc882e3009792953155f (diff) |
updated for version 7.0-109v7.0.109
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/misc1.c b/src/misc1.c index b74ce0de48..0c2b797cf7 100644 --- 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; |