Skip to content

Commit

Permalink
Merge pull request #15 from zahanm/master
Browse files Browse the repository at this point in the history
Recognize indented directives
  • Loading branch information
Lencerf authored Jan 5, 2019
2 parents a6ae96c + e48d409 commit 6196975
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit 6196975

Please sign in to comment.