Skip to content

Commit

Permalink
Merge pull request #46 from m15a/fix-catch-in-case-try-match-try
Browse files Browse the repository at this point in the history
Fix highlight for catch in case-try and match-try forms
  • Loading branch information
m15a authored Nov 2, 2024
2 parents 45f2d8e + 9505c8a commit 5574d83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ to [Semantic Versioning][2].
### Fixed

- Highlight quoted `&`, `&as`, `&into`, and `&until` as symbols.
- Highlight `catch` keyword in `case-try` and `match-try` forms.

## [1.0.1] - 2024-02-07

Expand Down
2 changes: 2 additions & 0 deletions syntax/fennel.vim
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ syn match fennelAuxSyntax /\$\([1-9]\|\.\.\.\)\?/
syn keyword fennelAuxSyntax ... _ &
syn keyword fennelAuxSyntax &as
syn keyword fennelAuxSyntax &into &until
" `catch` keyword in `case-try` and `match-try`
syn keyword fennelAuxSyntax catch
" Pattern prefix `?foo` or guard syntax `(matched ? (pred matched)` used in `match`
syn match fennelAuxSyntax /\<?\ze\([^[:space:]\n"'(),;@\[\]\\`{}~]\|\>\)/ contained containedin=fennelIdentifier
" Special suffix for gensym in macro
Expand Down

0 comments on commit 5574d83

Please sign in to comment.