diff options
author | Brian Evans <bevans@formulafolios.com> | 2020-03-03 13:09:45 -0800 |
---|---|---|
committer | Brian Evans <bevans@formulafolios.com> | 2020-03-03 13:09:45 -0800 |
commit | 071b71bf0ccb0fba2f5bd84bb0b9572c5f1880c0 (patch) | |
tree | 1959e03c9bb086004f62f001dee8f9fc5fafba82 /syntax | |
parent | 7b3ff39ca4b578e1ea704e9382fa385d92325588 (diff) |
Cleaning up comments and adding to readme
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/gmi.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/syntax/gmi.vim b/syntax/gmi.vim index cf0dccd..bb3e415 100644 --- a/syntax/gmi.vim +++ b/syntax/gmi.vim @@ -22,9 +22,13 @@ syn match gmiHeader /^#\{1,3}.*$/ syn match gmiLinkStart /^=>/ nextgroup=gmiLinkUrl skipwhite " An extremely naive way of handling the URL portion of the link line -" TODO think about improving this +" This is left naive in a deliberate attempt to be unambiguous about +" what part of a link line gemini considers to be the URL, regardless +" of whether or not it is a valid URL syn match gmiLinkUrl /\S\+/ contained nextgroup=gmiLinkTitle skipwhite +" Skipping whitespace from the URL match all text, including whitespace, +" until the end of the line syn match gmiLinkTitle /.*$/ contained " Handle list items |