]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(beancount): Add support for non-ASCII account names
author依云 <lilydjwg@gmail.com>
Mon, 22 Jun 2026 19:43:17 +0000 (19:43 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 22 Jun 2026 19:43:17 +0000 (19:43 +0000)
closes: #20597

Signed-off-by: 依云 <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/beancount.vim

index 4909c4bc08b5bffe574e91467caad41eddbc2dff..78d505eebb7037ef0c16d3f30b3989baef39acda 100644 (file)
@@ -2,6 +2,7 @@
 " Language: beancount
 " Maintainer: Nathan Grigg
 " Latest Revision: 2024-11-25
+" 2026 Jun 22 by Vim Project: allow non-ASCII account names
 
 if exists("b:current_syntax")
     finish
@@ -16,7 +17,7 @@ syn match beanAmount "\v[-+]?[[:digit:].,]+" nextgroup=beanCurrency contained
             \ skipwhite
 syn match beanCurrency "\v\w+" contained
 " Account name: alphanumeric with at least one colon.
-syn match beanAccount "\v[[:alnum:]]+:[-[:alnum:]:]+" contained
+syn match beanAccount "\v[[:alnum:]]+:\S+" contained
 syn match beanTag "\v#[-[:alnum:]]+" contained
 syn match beanLink "\v\^\S+" contained
 " We must require a space after the flag because you can have flags per