Complex Ruby code can break RuboCop or Parser, it’s fun ◦ e.g. def __END__() end will break Parser. ▪ This bug has been fixed. • Vim. ◦ Vim is a powerful, useful and pluggable editor.
◦ Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems. Jamie Zawinski http://regex.info/blog/2006-09-15/247
just an ident. ◦ [[[1, 0], :on_symbeg, ":", EXPR_FNAME], [[1, 1], :on_ident, "foo", EXPR_ENDFN]] • Parsing is enough. It is a symbol. ◦ [:program, [[:symbol_literal, [:symbol, [:@ident, "foo", [1, 1]]]]]]
It can highlight correctly. • You can try using Iro now! ◦ For Vimmer: https://github.com/pocke/iro.vim ◦ Web demo: https://ruby-highlight.herokuapp.com Thank you for listening!