From 94facd68d9f1013a7c3baa4f3b6d50de77caf559 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Wed, 17 Mar 2021 17:24:37 +0100 Subject: Highlight multi-line plugin definitions correctly vim's :syn-keepend is used to end any contained syntax group when its container group ends. The syntax file defines the end of a plugin definition as the end of the line, breaking multi-line plugin definitions that are common in our ledger. Remove the 'keepend' option to fix this. --- syntax/beancount.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/beancount.vim b/syntax/beancount.vim index 5961c17..44c1978 100644 --- a/syntax/beancount.vim +++ b/syntax/beancount.vim @@ -32,7 +32,7 @@ syn match beanDate "^\v\d{4}[-/]\d{2}[-/]\d{2}" skipwhite syn region beanOption matchgroup=beanKeyword start="^option" end="$" \ keepend contains=beanOptionTitle,beanComment syn region beanOption matchgroup=beanKeyword start="^plugin" end="$" - \ keepend contains=beanString,beanComment + \ contains=beanString,beanComment syn region beanInclude matchgroup=beanKeyword start="^include" end="$" \ keepend contains=beanString,beanComment syn region beanEvent matchgroup=beanKeyword start="event" end="$" contained -- cgit v1.2.3-2-gb3c3