summaryrefslogtreecommitdiff
path: root/contrib/vim/ftplugin/ledger.vim
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2010-09-12 14:18:06 +0200
committerJohann Klähn <kljohann@gmail.com>2010-09-12 14:18:06 +0200
commit3a679a695da865a78a401e5fc6166a91082cd004 (patch)
tree6a574570fd682f167a6f167a60c5411ce82d9018 /contrib/vim/ftplugin/ledger.vim
parent1be3a793857204a8baf935af063675a0b14c09b1 (diff)
downloadfork-ledger-3a679a695da865a78a401e5fc6166a91082cd004.tar.gz
fork-ledger-3a679a695da865a78a401e5fc6166a91082cd004.tar.bz2
fork-ledger-3a679a695da865a78a401e5fc6166a91082cd004.zip
vim. avoid misinterpretion of 1 char words
Diffstat (limited to 'contrib/vim/ftplugin/ledger.vim')
-rw-r--r--contrib/vim/ftplugin/ledger.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim
index a50a5510..77df4b09 100644
--- a/contrib/vim/ftplugin/ledger.vim
+++ b/contrib/vim/ftplugin/ledger.vim
@@ -367,7 +367,7 @@ function! s:transaction.from_lnum(lnum) dict "{{{2
let trans['date'] = part
elseif ! has_key(trans, 'code') && part =~ '^([^)]*)$'
let trans['code'] = part[1:-2]
- elseif ! has_key(trans, 'state') && part =~ '^.$'
+ elseif ! has_key(trans, 'state') && part =~ '^[[:punct:]]$'
" the first character by itself is assumed to be the state of the transaction.
let trans['state'] = part
else