jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 126 forks source link

Highlighting Issue with Anonymous Functions (\(x)) #819

Closed wklm closed 1 day ago

wklm commented 2 days ago

First off, thanks for the awesome plugin! I just wanted to flag a small issue I came across. It seems that anonymous functions ((x)), which were introduced in R 4.1.0, aren't being highlighted correctly.

Screenshot 2024-12-02 at 14 02 13

Steps to Reproduce:

Open an R script in Vim with Nvim-R. Add some anonymous functions, like \(x) x + 1. Notice that the highlighting doesn’t work for \(x).

Environment:

Vim Version: 9.1 Nvim-R Version: Latest (commit b7cdc9bcd6879465023e20b4a3ae16968edda776) R Version: 4.1.0+

Expected Behavior:

It’d be great if (x) was highlighted like other function definitions for better readability.

jalvesaq commented 1 day ago

I'm sorry, but I'm no longer the maintainer of ~/syntax/r.vim. Please, see: https://github.com/jalvesaq/R-Vim-runtime