mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 09:49:02 -06:00
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:
1 parent
b595654c39
commit
8532fc2021
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user