Project

General

Profile

Actions

Bug #5670

closed

Emacs ruby-mode syntax highlighting issue

Added by Quintus (Marvin Gülker) almost 13 years ago. Updated almost 12 years ago.

Status:
Third Party's Issue
Target version:
-
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
Backport:
[ruby-core:41298]

Description

Hi there,

I'm using Emacs and ruby-mode for editing my Ruby files. ruby-mode, however, doesn't know about the % literals. The following code doesn't get the syntax highlighting I'd expect from it:

==============================================

Should be highlighted as a regular expression, breaks indentation:

regex = %r

Should be highlighted as a symbol:

symbol = %s|This is a symbol|

Should be highlighted as a string:

str = %q{This is a string}

Should be highlighted as a string:

str = %{This is a string}

Should be highlighted somehow, but isn't:

ary = %w[item1 item2 item3]

Should be highlighted as a symbol (not string), sometimes

breaks indentation

symbol = :"this is a symbol"

I've been told ruby-mode has been written by Matz and therefore I should file a bug here (see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/390526 ). If that's wrong, please tell me where else to report this.

==============================================
$ emacs --version
GNU Emacs 23.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Valete,
Marvin


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #6823: Where/how should ruby-mode issues be reported?Closedmatz (Yukihiro Matsumoto)Actions

Updated by ko1 (Koichi Sasada) over 12 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)
Actions #2

Updated by shyouhei (Shyouhei Urabe) over 12 years ago

  • Status changed from Open to Assigned
Actions #5

Updated by nobu (Nobuyoshi Nakada) almost 12 years ago

  • Status changed from Assigned to Third Party's Issue
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0