Enh-Ruby-Mode和Ruby 3.1语法

发布于 2025-02-13 17:56:51 字数 644 浏览 2 评论 0原文

据我所知,Enh-Ruby-mode似乎不支持3.1,”值省略哈希文字“ 准确地说。

有办法解决它吗?

如果这很重要,我正在使用rbenv。

Enh-Ruby-Program是“〜/.rbenv/shims/ruby”。

Ruby版本为3.1.2

Ruby -C Path/to/file输出语法OK对于同一文件。

Enh-Ruby-Mode插件版本是20210120.201

作为解决方法,我必须为3.1 Ruby Project设置Enh-Ruby-Check-Syntax

From what I see, enh-ruby-mode doesn't seem to support the latest Ruby syntax updates of 3.1, "value omission in Hash literals" to be exact.

Is there a way to solve it?

enter image description here

If that's important, I'm using rbenv.

enh-ruby-program is "~/.rbenv/shims/ruby".

Ruby version is 3.1.2

ruby -c path/to/file outputs Syntax OK for the same file.

enh-ruby-mode plugin version is 20210120.201

As a workaround, I had to set enh-ruby-check-syntax for that 3.1 Ruby project.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文