]> git.madduck.net Git - etc/vim.git/blobdiff - test/folding-toc.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Escape `~` in regexp with folding
[etc/vim.git] / test / folding-toc.vader
index e15ed73690d0959b2e3a5077e116685e0775ef85..950d8cd19a298482f88b59b06e883bc12f4a7532 100644 (file)
@@ -29,7 +29,7 @@ echo "foo"
 
 ~~~~bash
 mkdir foo
-cd foo
+# comment in ~
 ~~~~
 
 ### chap 1.1.1
@@ -74,6 +74,7 @@ Execute (fold level):
   AssertEqual foldlevel(7), 1, '# some bash scripting'
   AssertEqual foldlevel(15), 1, '## chap 1.1'
   AssertEqual foldlevel(21), 2, 'mkdir foo'
+  AssertEqual foldlevel(22), 2, 'comment in ~'
   AssertEqual foldlevel(25), 2, '### chap 1.1.1'
   AssertEqual foldlevel(27), 3, '- dragons'
   AssertEqual foldlevel(30), 1, '# chap 2'
@@ -96,6 +97,7 @@ Execute (fold text result):
 
 Execute (check TOC):
   :Toc
+  :lclose
   let res = getloclist(0)
   let elem = res[0]
   AssertEqual elem.lnum, 1