Skip to content

Commit 929340d

Browse files
committed
Highlight catch.
Fixes #671
1 parent 48f58bb commit 929340d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
- Prefer opened `Belt` modules in autocomplete when `-open Belt` is detected in `bsconfig`. https://github.com/rescript-lang/rescript-vscode/pull/673
2525
- Improve precision in signature help. You now do not need to type anything into the argument for it to highlight. https://github.com/rescript-lang/rescript-vscode/pull/675
2626

27+
#### :bug: Bug Fix
28+
29+
- Highlight `catch` like a keyword https://github.com/rescript-lang/rescript-vscode/pull/677
30+
2731
## v1.10.0
2832

2933
#### :nail_care: Polish

grammars/rescript.tmLanguage.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"repository": {
66
"RE_KEYWORD_CONTROL": {
77
"name": "keyword.control",
8-
"match": "\\b(and|as|assert|async|await|constraint|downto|else|exception|external|for|if|in|lazy|mutable|rec|switch|to|try|when|while|with)\\b"
8+
"match": "\\b(and|as|assert|async|await|catch|constraint|downto|else|exception|external|for|if|in|lazy|mutable|rec|switch|to|try|when|while|with)\\b"
99
},
1010
"RE_TO_DOWNTO_AS_LABELS": {
1111
"patterns": [

0 commit comments

Comments
 (0)