vim-patch:fc6d0d4: runtime(beancount): Add support for non-ASCII account names

closes: vim/vim#20597

https://github.com/vim/vim/commit/fc6d0d418d7508a0c9ec55306b937ba18d2cca25

Co-authored-by: 依云 <lilydjwg@gmail.com>
This commit is contained in:
zeertzjqand依云 committed 2026-06-23 06:51:33 +08:00
1 parent b595654c39
commit 8532fc2021
1 file changed
+2 -1
+2 -1
View 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