diff --git a/CHANGELOG.md b/CHANGELOG.md index c3cf3ad05..83f711464 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ - Prefer opened `Belt` modules in autocomplete when `-open Belt` is detected in `bsconfig`. https://github.com/rescript-lang/rescript-vscode/pull/673 - 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 +#### :bug: Bug Fix + +- Highlight `catch` like a keyword https://github.com/rescript-lang/rescript-vscode/pull/677 + ## v1.10.0 #### :nail_care: Polish diff --git a/grammars/rescript.tmLanguage.json b/grammars/rescript.tmLanguage.json index 18d1adcc6..db63e9b56 100644 --- a/grammars/rescript.tmLanguage.json +++ b/grammars/rescript.tmLanguage.json @@ -5,7 +5,7 @@ "repository": { "RE_KEYWORD_CONTROL": { "name": "keyword.control", - "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" + "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" }, "RE_TO_DOWNTO_AS_LABELS": { "patterns": [