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

Recognize indented directives #15

Merged
merged 2 commits into from
Jan 5, 2019
Merged

Recognize indented directives #15

merged 2 commits into from
Jan 5, 2019

Conversation

zahanm
Copy link
Contributor

@zahanm zahanm commented Jan 5, 2019

When using region folding through indentation in VSCode, this extension didn't recognize directives, because the language grammar explicitly looked for the start of the line. I'm allowing whitespace since beancount itself supports it (I've been using it with my personal ledger).

Also documented the folding syntax from the README for others starting out.

Zahan Malkani added 2 commits January 5, 2019 11:20
beancount does fine with indented `pushtag` and `option` directives, but
this extensions syntax didn't recognize it

why indent? for folding, as outlined in Lencerf#5
I prefer indenting over the `;#region` syntax since it's more editor
independant

test plan:
I used it locally with my own file and syntax highlighting looked fine
with the indentation
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