diff options
author | Wolfgang Müller | 2021-03-17 17:24:37 +0100 |
---|---|---|
committer | Wolfgang Müller | 2021-03-17 17:24:37 +0100 |
commit | 94facd68d9f1013a7c3baa4f3b6d50de77caf559 (patch) | |
tree | ffa919849ef7f8d69a8782f2e72c9f5477229503 /syntax | |
parent | 500ea5955c44c4526b62f0f0f944841d37b18eac (diff) | |
download | vim-beancount-94facd68d9f1013a7c3baa4f3b6d50de77caf559.tar.gz |
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.
Diffstat (limited to '')
-rw-r--r-- | syntax/beancount.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |