File: skip_line.vader

package info (click to toggle)
vim-link-vim 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 524 kB
  • sloc: python: 66; makefile: 30
file content (93 lines) | stat: -rw-r--r-- 1,749 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Before:
  unlet! b:link_heading
  unlet! b:link_skip_line
After:
  unlet! b:link_heading
  unlet! b:link_skip_line

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Given javascript:
  // filler
  const url = ' http://www.magna.com '

  // this is a comment: https://vitae.net/index.html
~~~~~
Execute (Use default (commentstring) to skip lines; JavaScript):
  let b:link_heading = 'Links:'
  LinkConvertAll
~~~~~
Expect javascript:
  // filler
  const url = ' [0] '

  // this is a comment: https://vitae.net/index.html

  Links:

  [0]: http://www.magna.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Given html:
  Filler
  Not a comment: http://www.magna.com

  <!-- this is a comment: https://vitae.net/index.html -->

  Continued

  > Blockquote: http://lacus.org/lacus

  End
~~~~~
Execute (Use default (commentstring) to skip lines; HTML):
  LinkConvertAll
~~~~~
Expect html:
  Filler
  Not a comment: [0]

  <!-- this is a comment: https://vitae.net/index.html -->

  Continued

  > Blockquote: http://lacus.org/lacus

  End

  Links:

  [0]: http://www.magna.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Given html:
  Not a comment: http://www.magna.com

  <!-- this is a comment: https://vitae.net/index.html -->

  Continued

  // custom comment: http://lacus.org/lacus

  End
~~~~~
Execute (Use custom pattern to skip lines; HTML):
  let b:link_skip_line = '^//'
  LinkConvertAll
~~~~~
Expect html:
  Not a comment: [0]

  <!-- this is a comment: [1] -->

  Continued

  // custom comment: http://lacus.org/lacus

  End

  Links:

  [0]: http://www.magna.com
  [1]: https://vitae.net/index.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~