Skip to content

Commit

Permalink
Merge pull request #45 from m15a/fix-quoted-keywords
Browse files Browse the repository at this point in the history
Fix quoted keywords
  • Loading branch information
m15a authored Nov 2, 2024
2 parents 349cd6c + a4cc447 commit 45f2d8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ to [Semantic Versioning][2].
- Support Fennel 1.5.1:
- Literal syntax `.inf`, `-.inf`, `.nan`, and `-.nan` (Fennel 1.5.1)

### Fixed

- Highlight quoted `&`, `&as`, `&into`, and `&until` as symbols.

## [1.0.1] - 2024-02-07

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion syntax/fennel.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
" Vim syntax file
" Language: Fennel
" Last Change: 2024-11-01
" Last Change: 2024-11-02
" Original Maintainer: Calvin Rose
" Maintainer: NACAMURA Mitsuhiro <m15@m15a.dev>
" URL: https://github.com/m15a/vim-fennel-syntax
Expand Down Expand Up @@ -52,6 +52,7 @@ syn match fennelIdentifier /[^#&:0-9[:space:]\n"'(),;@\[\]\\`{}~][^&[:space:]\n"
syn match fennelLuaTableItemAccessor /\./ contained containedin=fennelIdentifier
syn match fennelLuaMethodCall /:/ contained containedin=fennelIdentifier
syn match fennelSymbol /[^#&:0-9[:space:]\n"'(),;@\[\]\\`{}~][^&[:space:]\n"'(),;@\[\]\\`{}~]*/ contained
syn keyword fennelSymbol & &as &into &until
" <keyword> -> : <subsequent> +
" Keyword such as ::: is accepted by Fennel!
syn match fennelKeyword /:[^[:space:]\n"'(),;@\[\]\\`{}~]\+/
Expand Down

0 comments on commit 45f2d8e

Please sign in to comment.