[英]Does Emacs support font-lock for Ruby 2.0 percent literals?
How can I fix ruby 2.0 symbol array syntax in Emacs? 如何在Emacs中修复ruby 2.0符号数组语法?
In standard ruby-mode
, it displays symbol arrays in default color. 在标准
ruby-mode
,它将以默认颜色显示符号阵列。 In enh-ruby-mode
, a definition of symbol array breaks my color theme entirely. 在
enh-ruby-mode
,符号数组的定义完全破坏了我的颜色主题。
ruby-mode
is currently not capable of rendering the array syntax correctly. ruby-mode
当前无法正确呈现数组语法。
If you really are concerned about that, consider using the highlight-escape-sequences
package, available through MELPA . 如果您真的对此感到担心,请考虑使用MELPA提供的
highlight-escape-sequences
软件包。
Edit The same author (Dmitry Gutov) seems to have made a commit on ruby-mode
, fixing the syntax-highlighting for array of symbols, as we can see here . 编辑同一位作者(Dmitry Gutov)似乎已经对
ruby-mode
做出过承诺,修复了符号数组的语法高亮显示,正如我们在此处看到的那样。 But that change is not available yet, so I guess we need to wait for Emacs 24.4... 但是该更改尚不可用,所以我想我们需要等待Emacs 24.4 ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.