diff options
author | sloum <sloum@sdf.org> | 2020-05-19 05:13:10 +0000 |
---|---|---|
committer | sloum <sloum@sdf.org> | 2020-05-19 05:13:10 +0000 |
commit | 726c59ea0045567fcae6690df4e412b28a98314e (patch) | |
tree | eb5e0b4e94610b2ec1e60f6e9e8bab2038b04a74 /syntax | |
parent | d2fa7f69878e76a709052c89d89e5d1051b764e1 (diff) |
Limit headings to three and make mono blocks start at beginning of line, also fix makefile
Diffstat (limited to 'syntax')
-rw-r--r-- | syntax/gmi.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/syntax/gmi.vim b/syntax/gmi.vim index bb3e415..e7531d8 100644 --- a/syntax/gmi.vim +++ b/syntax/gmi.vim @@ -1,7 +1,7 @@ " Vim syntax file " " Language: gemini " " Maintainer: sloum < sloum AT rawtext.club > -" " Latest Revision: 02 February 2020 +" " Latest Revision: 18 May 2020 " " For version 5.x: Clear all syntax items @@ -13,10 +13,10 @@ elseif exists("b:current_syntax") endif " Handle monospaced blocks -syn region gmiMono start="```" end="```" +syn region gmiMono start=/^```/ end=/^```/ " Handle between one and three heading levels -syn match gmiHeader /^#\{1,3}.*$/ +syn match gmiHeader /^#\{1,3}[^#].*$/ " Start a link line syn match gmiLinkStart /^=>/ nextgroup=gmiLinkUrl skipwhite |