diff --git a/README.md b/README.md index 8ac702b..c2905b1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/syntaxes/beancount.tmLanguage b/syntaxes/beancount.tmLanguage index abe97fd..79c9369 100644 --- a/syntaxes/beancount.tmLanguage +++ b/syntaxes/beancount.tmLanguage @@ -20,7 +20,7 @@ begin - ^(poptag|pushtag)\s+(#)([A-Za-z0-9\-_/.]+) + ^\s*(poptag|pushtag)\s+(#)([A-Za-z0-9\-_/.]+) beginCaptures 1 @@ -59,7 +59,7 @@ begin - ^(include)\s+(\".*\") + ^\s*(include)\s+(\".*\") beginCaptures 1 @@ -93,7 +93,7 @@ begin - ^(option)\s+(\".*\")\s+(\".*\") + ^\s*(option)\s+(\".*\")\s+(\".*\") beginCaptures 1 @@ -132,7 +132,7 @@ begin - ^(plugin)\s+(\"(.*)\")\s+(\".*\") + ^\s*(plugin)\s+(\"(.*)\")\s+(\".*\") beginCaptures 1