Skip to content

Commit

Permalink
Custom folding
Browse files Browse the repository at this point in the history
Fixes #69
  • Loading branch information
chenglou committed Jan 28, 2021
1 parent a825fc2 commit 1cd7b81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Properly highlight nested comments.
- Fix Windows diagnostics!
- Custom folding. See README

## 1.0.4

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The plugin activates on `.res` and `.resi` files. If you've already got Reason-L
- Snippets to ease a few syntaxes:
- `external` features such as `@bs.module` and `@bs.val`
- `try`, `for`, etc.
- Folding, and [custom folding](https://code.visualstudio.com/docs/editor/codebasics#_folding) through `//#region` and `//#endregion`.

### Upcoming Features

Expand Down
5 changes: 4 additions & 1 deletion rescript.configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
]
],
"folding": {
"offSide": true
"markers": {
"start": "^\\s*//\\s*#?region\\b",
"end": "^\\s*//\\s*#?endregion\\b"
}
}
}

0 comments on commit 1cd7b81

Please sign in to comment.