Limit headings to three and make mono blocks start at beginning of line, also fix makefile

This commit is contained in:
sloum 2020-05-19 05:13:10 +00:00
parent d2fa7f6987
commit 726c59ea00
2 changed files with 5 additions and 5 deletions

View file

@ -17,8 +17,8 @@ endif
install: ./syntax/gmi.vim ./ftdetect/gmi.vim install: ./syntax/gmi.vim ./ftdetect/gmi.vim
install -d ${ROOT}${SYN} install -d ${ROOT}${SYN}
install -d ${ROOT}${FT} install -d ${ROOT}${FT}
install -m 0644 ./syntax/gmi.vim ${ROOT}${SYN} install -m 0644 .${SYN}/gmi.vim ${ROOT}${SYN}
install -m 0644 ./syntax/gmi.vim ${ROOT}${FT} install -m 0644 .${FT}/gmi.vim ${ROOT}${FT}
.PHONY: remove .PHONY: remove
remove: remove:

View file

@ -1,7 +1,7 @@
" Vim syntax file " Vim syntax file
" " Language: gemini " " Language: gemini
" " Maintainer: sloum < sloum AT rawtext.club > " " Maintainer: sloum < sloum AT rawtext.club >
" " Latest Revision: 02 February 2020 " " Latest Revision: 18 May 2020
" "
" For version 5.x: Clear all syntax items " For version 5.x: Clear all syntax items
@ -13,10 +13,10 @@ elseif exists("b:current_syntax")
endif endif
" Handle monospaced blocks " Handle monospaced blocks
syn region gmiMono start="```" end="```" syn region gmiMono start=/^```/ end=/^```/
" Handle between one and three heading levels " Handle between one and three heading levels
syn match gmiHeader /^#\{1,3}.*$/ syn match gmiHeader /^#\{1,3}[^#].*$/
" Start a link line " Start a link line
syn match gmiLinkStart /^=>/ nextgroup=gmiLinkUrl skipwhite syn match gmiLinkStart /^=>/ nextgroup=gmiLinkUrl skipwhite