PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/marks/link.t2t

http://txt2tags.googlecode.com/
Unknown | 100 lines | 98 code | 2 blank | 0 comment | 0 complexity | 006d0dca82fd72e34d4d4840301250db MD5 | raw file
  1
  2%!includeconf: test.conf
  3BODYINIT
  4
  5%%% Syntax: E-mail
  6user@domain.com
  7user@domain.com.
  8user@domain.com. any text.
  9any text: user@domain.com. any text.
 10[label user@domain.com]
 11%%% Syntax: E-mail with form data
 12user@domain.com?subject=bla
 13user@domain.com?subject=bla.
 14user@domain.com?subject=bla,
 15user@domain.com?subject=bla&cc=otheruser@domain.com
 16user@domain.com?subject=bla&cc=otheruser@domain.com.
 17user@domain.com?subject=bla&cc=otheruser@domain.com,
 18[label user@domain.com?subject=bla&cc=otheruser@domain.com].
 19[label user@domain.com?subject=bla&cc=otheruser@domain.com.].
 20%%% Syntax: URL
 21http://www.domain.com
 22http://www.domain.com/dir/
 23http://www.domain.com/dir///
 24http://www.domain.com.
 25http://www.domain.com,
 26http://www.domain.com. any text.
 27http://www.domain.com, any text.
 28http://www.domain.com/dir/. any text.
 29any text: http://www.domain.com. any text.
 30any text: http://www.domain.com/dir/. any text.
 31any text: http://www.domain.com/dir/index.html. any text.
 32any text: http://www.domain.com/dir/index.html, any text.
 33%%% Syntax: URL with anchor
 34http://www.domain.com/dir/#anchor
 35http://www.domain.com/dir/index.html#anchor
 36http://www.domain.com/dir/index.html#anchor.
 37http://www.domain.com/dir/#anchor. any text.
 38http://www.domain.com/dir/index.html#anchor. any text.
 39any text: http://www.domain.com/dir/#anchor. any text.
 40any text: http://www.domain.com/dir/index.html#anchor. any text.
 41%%% Syntax: URL with form data
 42http://domain.com?a=a@a.a&b=a+b+c.
 43http://domain.com?a=a@a.a&b=a+b+c,
 44http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.
 45http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.
 46%%% Syntax: URL with form data and anchor
 47http://domain.com?a=a@a.a&b=a+b+c.#anchor
 48http://domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor
 49http://domain.com/bla.cgi?a=a@a.a&b=a+b+c@.#anchor
 50%%% Syntax: URL with login data
 51http://user:password@domain.com/bla.html.
 52http://user:password@domain.com/dir/.
 53http://user:password@domain.com.
 54http://user:@domain.com.
 55http://user@domain.com.
 56%%% Syntax: URL with login, form and anchor
 57http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor
 58http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c@#anchor
 59%%% Syntax: URL with label
 60[label www.domain.com]
 61%%% Syntax: URL with label (trailing spaces are discarded, leading are maintained)
 62%TODO normalize this behavior
 63[  label www.domain.com]
 64[label   www.domain.com]
 65%%% Syntax: URL with label, stressing
 66[anchor        http://www.domain.com/dir/index.html#anchor.]
 67[login         http://user:password@domain.com/bla.html]
 68[form          http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.]
 69[form & anchor http://www.domain.com/bla.cgi?a=a@a.a&b=a+b+c.#anchor]
 70[login & form  http://user:password@domain.com/bla.cgi?a=a@a.a&b=a+b+c.]
 71%%% Syntax: Link with label for local files
 72[local link up          ..]
 73[local link file        bla.html]
 74[local link anchor      #anchor]
 75[local link file/anchor bla.html#anchor]
 76[local link file/anchor bla.html#anchor.]
 77[local link img         abc.gif]
 78%%% Syntax: Another link as a label
 79[www.fake.com www.domain.com]
 80%%% Syntax: URL with funny chars
 81http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm
 82http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-
 83http://domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.
 84http://foo._user-9:pass!#$%&*()+word@domain.com:8080/~user/_st-r@a=n$g,e/index%20new.htm?a=/%22&b=+.@*_-#anchor_-1%.
 85%%% Test: Various per line
 86http://L1.com ! L2@www.com ! [L3 www.com] ! [L4 w@ww.com] ! www.L5.com
 87%%% Feature: Guessed link, adding protocol automatically
 88www.domain.com
 89www2.domain.com
 90ftp.domain.com
 91WWW.DOMAIN.COM
 92FTP.DOMAIN.COM
 93[label www.domain.com]
 94[label ftp.domain.com]
 95[label WWW.DOMAIN.COM]
 96[label FTP.DOMAIN.COM]
 97%%% Invalid: Trailing space on link
 98[label www.domain.com ]
 99%%% Invalid: Label with ] char (use postproc)
100[label] www.domain.com]