]> 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 a02f1c2c0dcc5d9eccc6ae18dafc76047ff560b3..950d8cd19a298482f88b59b06e883bc12f4a7532 100644 (file)
@@ -29,7 +29,7 @@ echo "foo"
 
 ~~~~bash
 mkdir foo
 
 ~~~~bash
 mkdir foo
-cd foo
+# comment in ~
 ~~~~
 
 ### chap 1.1.1
 ~~~~
 
 ### 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(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'
   AssertEqual foldlevel(25), 2, '### chap 1.1.1'
   AssertEqual foldlevel(27), 3, '- dragons'
   AssertEqual foldlevel(30), 1, '# chap 2'