Project

General

Profile

Actions

Bug #4242

closed

ruby-mode for emacs syntax highlighting breaks on regular expressions

Added by amasal (Nguma Abojo) almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
Backport:
[ruby-core:34183]

Description

=begin
I'm not sure what category this one goes to so I apologise if I picked the wrong one.

I believe the syntax highlighting in the ruby-mode for emacs in /misc/ruby-mode.rl is broken for certain regular expressions. The RE will then be interpreted as non-RE Ruby code and the string quote counting gets all confused, too. Just fire up the test file I attached in emacs with ruby-mode and it should be fairly obvious.

emacs versions tested:
GNU Emacs 22.3.1 (i386-mingw-nt6.1.7600)
GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600)

ruby-mode versions tested:
Head from svn rep, rev 30480 as I am writing this.
=end


Files

test-file.rb (1.28 KB) test-file.rb Load this file in emacs with ruby-mode active to see how the syntax highlighting breaks amasal (Nguma Abojo), 01/06/2011 09:58 PM
Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30484.
Nguma, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0