]> git.wincent.com - docvim.git/commitdiff
Add test showing @option output
authorGreg Hurrell <greg@hurrell.net>
Mon, 6 Jun 2016 15:41:05 +0000 (08:41 -0700)
committerGreg Hurrell <greg@hurrell.net>
Mon, 6 Jun 2016 15:41:05 +0000 (08:41 -0700)
Something buggy in the parser: note that we have to explicitly say "none" for
the no-default case, but I intended that to be simply omittable.

tests/fixtures/vim/options.golden [new file with mode: 0644]
tests/fixtures/vim/options.vim [new file with mode: 0644]

diff --git a/tests/fixtures/vim/options.golden b/tests/fixtures/vim/options.golden
new file mode 100644 (file)
index 0000000..8cd1ada
--- /dev/null
@@ -0,0 +1,14 @@
+                                                                      *g:Foo*
+ |g:Foo|                                             string (default: "foo")
+
+Controls the foo factor.
+
+                                                                     *g:Temp*
+ |g:Temp|                                               number (default: 10)
+
+Temperature control.
+
+                                                                      *g:Bar*
+ |g:Bar|                                              string (default: none)
+
+No default on this one.
diff --git a/tests/fixtures/vim/options.vim b/tests/fixtures/vim/options.vim
new file mode 100644 (file)
index 0000000..bf6c50b
--- /dev/null
@@ -0,0 +1,12 @@
+""
+" @option g:Foo string "foo"
+"
+" Controls the foo factor.
+"
+" @option g:Temp number 10
+"
+" Temperature control.
+"
+" @option g:Bar string none
+"
+" No default on this one.