aboutsummaryrefslogtreecommitdiffstats
path: root/syntax/beancount.vim (unfollow)
Commit message (Collapse)AuthorLines
2021-03-17add commodity directiveMark Lodato-1/+3
2021-03-17Use Tag and Special for tags and metadata, resp.Mark Lodato-2/+2
Previously tags and metadata used the Comment group, which didn't make much sense and caused everything to blend together. Now they use their own groups which allows them to stand out.
2021-03-17Highlight multi-line plugin definitions correctlyWolfgang Müller-1/+1
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.
2017-02-25Update syntax to handle per-leg flags better.Nathan Grigg-2/+5
2016-11-11add back support for `*` transaction flagJakob Schnitzer-2/+2
2016-10-07Improve flag supportKonstantin Mikhailov-4/+5
Beancount allows to attach flags to transactions and even to the postings themselves. At the moment it supports 12 different flags. Full list can be found in beancount sources https://bitbucket.org/blais/beancount/src/tip/src/python/beancount/parser/lexer.l?fileviewer=file-view-default#lexer.l-199 The commit updates syntax highlighting and AlignCommodity function to respect all flags.
2016-09-30Fix highlight of txn directiveKonstantin Mikhailov-1/+1
txn directive is mutually exclusive with flags (!*)
2016-04-25Allow dates to be slash-separatedNathan Grigg-2/+2
(#17)
2016-04-24Allow underscores and capital letters in meta keysZhuoyun Wei-1/+1
2016-02-01Add fold rules for markdown style sectionsJason Chu-0/+12
2015-12-08Highlight `include` keywordYuchen Ying-0/+2
2015-04-04Highlight tag part of pushtag/poptagNathan Grigg-1/+2
2015-02-10Don't allow directives to eat the end character.Nathan Grigg-12/+13
Fixes #3.
2015-02-10Enable syntax-based folding of transactionsAaron Bull Schaefer-1/+1
This is much more useful compared to using just foldmethod=marker, and it could be enhanced to support other multi-line items in the future.
2015-02-10Properly highlight syntax containing hyphens and numbersAaron Bull Schaefer-3/+3
This PR fixes a few things: 1. Allow numbers within tags; tested to be valid and shown in the upstream documentation. 2. Padding directives have a date before them, so they should not be anchored at the beginning of the line. 3. Hypens are allowed in meta-data attribute names; tested to be valid and shown in the upstream documentation.
2015-01-22Allow hyphens in tagsNathan Grigg-1/+1
2014-12-31Allow hyphen in account nameNathan Grigg-1/+1
2014-12-31tags, links, and metadata syntax highlightingNathan Grigg-3/+9
2014-11-21Fix up syntax highlightingNathan Grigg-6/+8
2014-11-03Move price syntax to its own definitionNathan Grigg-2/+4
2014-11-01Add price command to syntax defintionNathan Grigg-1/+1
2014-10-07First try for syntax fileNathan Grigg-0/+62