mirror of
https://tildegit.org/sloum/gemini-vim-syntax.git
synced 2024-08-14 22:46:59 +00:00
Cleaning up comments and adding to readme
This commit is contained in:
parent
7b3ff39ca4
commit
071b71bf0c
2 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue