Skip to content

Commit

Permalink
fix: catch up with Fennel 1.2.0
Browse files Browse the repository at this point in the history
- Support `fcollect` macro
- Support `&until` and `&into` keywords
  • Loading branch information
mnacamura committed Feb 6, 2024
1 parent 049ed79 commit 0aed875
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- More granular highlighting for string escape sequences:
- `\z` and `\x..` are supported by Lua>=5.2 or LuaJIT, highlighted as error otherwise.
- `\u{..}` is supported by Lua>=5.3, highlighted as error otherwise.
- Support `fcollect` macro (Fennel 1.2.0)
- Support `&into` and `&until` keywords in loops (Fennel 1.2.0).
- Support `match-try` macro (Fennel 1.1.0).
- Support `accumulate` macro (Fennel 0.10.0).

Expand Down
3 changes: 3 additions & 0 deletions syntax/fennel.vim
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,14 @@ syn keyword fennelSpecialForm collect icollect
syn keyword fennelSpecialForm accumulate
" 1.1.0
syn keyword fennelSpecialForm match-try
" 1.2.0
syn keyword fennelSpecialForm fcollect

" Auxiliary syntaxes {{{2
syn match fennelAuxSyntax /\$\([1-9]\|\.\.\.\)\?/
syn keyword fennelAuxSyntax ... _ &
syn keyword fennelAuxSyntax &as
syn keyword fennelAuxSyntax &into &until
" 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 0aed875

Please sign in to comment.