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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Simple [Beancount](http://furius.ca/beancount/) support for VSCode
4. Auto balance checking after saving files
5. Hovers with account balances.
6. Code snippets ([@vlamacko](https://github.com/Lencerf/vscode-beancount/pull/7))
7. Region folding - use indentation (#5), or special comments (#11)

## Extension Settings

Expand Down
8 changes: 4 additions & 4 deletions syntaxes/beancount.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</dict>
<dict>
<key>begin</key>
<string>^(poptag|pushtag)\s+(#)([A-Za-z0-9\-_/.]+)</string>
<string>^\s*(poptag|pushtag)\s+(#)([A-Za-z0-9\-_/.]+)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -59,7 +59,7 @@
</dict>
<dict>
<key>begin</key>
<string>^(include)\s+(\".*\")</string>
<string>^\s*(include)\s+(\".*\")</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -93,7 +93,7 @@
</dict>
<dict>
<key>begin</key>
<string>^(option)\s+(\".*\")\s+(\".*\")</string>
<string>^\s*(option)\s+(\".*\")\s+(\".*\")</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -132,7 +132,7 @@
</dict>
<dict>
<key>begin</key>
<string>^(plugin)\s+(\"(.*)\")\s+(\".*\")</string>
<string>^\s*(plugin)\s+(\"(.*)\")\s+(\".*\")</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
Expand Down