Hello
In my vim 7.1 fresh install, I encounters a strange highlighting problem with Ruby syntax, when I type the following
code in a fresh hello.rb file in one pass :
#!/usr/bin/env ruby
def hello
puts "hello"
end
The shebang (or comment, same behaviour) is coloured as expected,
but the following lines remains black, seeming to be ignored,
until you went back for changing something in content...
The problem seems to be that "rubyComment" token in ruby.vim has a too permissive matching regex, which doesn't
require a end of line at the end : Since I added "\n" at the end of the expression, issue disappear anymore
and after testing a bunch of other source codes, this correction doesn't seem to break another part...
This issue shoud concern current CVS version too, as mentionned line was no modified since vim 7.1 ruby.vim one : Does
someone has same problem, and if the issue is not specific to me, could you apply my patch ?
Thanks, please excuse me for my poor english (I'm not a native speaker) and the errors I may have done in this first
bug report, and have a good day ;-) |