nvim/ruler: make comment hl-group recursive

This commit is contained in:
Primrose 2025-12-10 21:32:02 +08:00
parent 45c4e95843
commit 8b15436a35
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -10,10 +10,10 @@ syn match rulerLineComment "--.*$"
syn match rulerTripleDot "\.\.\."
syn match rulerDate "\d\d\d\d\D\d\d\D\d\d \d\d\D\d\d\D\(\d\d\|__\)"
syn match rulerTag "\s\+[a-zA-Z]\+:[^\n]*"
syn match rulerImport "import"
syn match rulerType "type"
syn keyword rulerImport import
syn keyword rulerType type
syn region rulerBlockComment start="{-" end="-}"
syn region rulerBlockComment start="{-" end="-}" contains=rulerBlockComment
hi def link rulerLineComment Comment
hi def link rulerBlockComment Comment