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 presentSo yeah, it's normal.
更多推荐
发布评论