jaawerth / fennel.vim

Syntax highlighting for Fennel
https://fennel-lang.org
MIT License
13 stars 3 forks source link

Errors opening vim syntax/fennel.vim, line 253 Range too large in character class #7

Open mikemee opened 1 year ago

mikemee commented 1 year ago

Any idea why these errors might be occurring on a pretty minimal installation of vim (when opening a .fnl file)?

Thanks in advance … perhaps something to do with vim 9.0 (seemingly recently adopted as a default by Apple)?

Error detected while processing BufNewFile Autocommands for "*.fnl"..FileType Autocommands for "*".
.Syntax Autocommands for "*"..function <SNR>9_SynSet[25]..script ~/.vim/plugged/fennel
.vim/syntax/fennel.vim:                                                                            
line  253:                                                                                         
E945: Range too large in character class                                                           
line  254:                                                                                         
E945: Range too large in character class                                                           
line  253:                                                                                         
E945: Range too large in character class                                                           
line  254:                                                                                         
E945: Range too large in character class  

My vim reports:

$ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar  7 2023 21:33:05)
macOS version - arm64
Included patches: 1-1313
Compiled by root@apple.com
jaawerth commented 1 year ago

Thanks for reporting this - looks like something needs to be done for vim9 compat - I'll make sure it's fixed soon and then start testing against vim9 moving forward when nontrivial updpates are made.

mikemee commented 1 year ago

Thanks. Not at all urgent. I didn't choose vim9, but some Apple update or other added it. This isn't the only thing that's a bit weird with it. Fortunately I have few plugins or non-default settings.