Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set comment character and improved syntax matching #8

Merged
merged 2 commits into from
Feb 27, 2017
Merged

Set comment character and improved syntax matching #8

merged 2 commits into from
Feb 27, 2017

Conversation

pcekm
Copy link
Contributor

@pcekm pcekm commented Feb 26, 2017

Setting the comment character makes it possible to comment and uncomment selected lines using Ctrl+/.

This also fixes some overly prescriptive regexes, such as required comments after option directives, and it adds support for a broader range of valid syntax, most notably comma separators in numbers (e.g. 1,234.00) and currency/commodity restrictions on open directives (e.g. 2017-02-16 open Assets:Checking USD).

This allows you to comment and uncomment regions using Ctrl+/.
 - Don't require comments on option, pushtag, pulltag, or plugin.
 - Allow multiple spaces between date and open, close, or pad.
 - Allow a list of commodities with open.
 - Support {{total cost}} on postings.
@norseghost norseghost merged commit bde3fbe into norseghost:master Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants