Sublime text 3丑陋的语法高亮(Sublime text 3 ugly syntax highlighting)

编程入门 行业动态 更新时间:2024-10-23 07:36:48
Sublime text 3丑陋的语法高亮(Sublime text 3 ugly syntax highlighting)

我正在学习Ruby,我正在使用Sublime Text 3,但我发现语法高亮非常奇怪。

例如 :

丑陋的语法

甚至在将语法设置为ruby之后。

Ruby语法集

我想知道这是否正常,或者我是否需要更改用户设置或类似内容。

I'm learning Ruby and I'm using Sublime Text 3 but I find the syntax highlighting really strange.

For example :

Ugly syntax

Even after setting the syntax to ruby.

Ruby syntax set

I'd like to know if this is normal, or if I need to change something on the users settings or something like that.

最满意答案

Ruby的语法文件( Ruby.sublime-syntax )包含未解决问题的列表。 其中包括:

text: "p << end print me! end" symptoms: not recognized as a heredoc solution: there is no way to distinguish perfectly between the << operator and the start of a heredoc. Currently, we require assignment to recognize a heredoc. More refinement is possible. • Heredocs with indented terminators (<<-) are always distinguishable, however. • Nested heredocs are not really supportable at present

所以是的,这是正常的。

The syntax file for Ruby (Ruby.sublime-syntax) contains a list of unresolved issues. Among them is:

text: "p << end print me! end" symptoms: not recognized as a heredoc solution: there is no way to distinguish perfectly between the << operator and the start of a heredoc. Currently, we require assignment to recognize a heredoc. More refinement is possible. • Heredocs with indented terminators (<<-) are always distinguishable, however. • Nested heredocs are not really supportable at present

So yeah, it's normal.

更多推荐

本文发布于:2023-08-05 04:15:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1427245.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:丑陋   语法   text   Sublime   highlighting

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!