Project

General

Profile

Actions

Bug #3764

closed

Ripper incorrectly handle literal keywords (as symbol, eg. :class)

Added by ngtzeyang (TzeYang Ng) about 14 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
1.9.3
Backport:
[:]

Description

=begin
Given the following use case of ripper:

pp Ripper.lex(':class')

I'm gettting:

[[[1, 0], :on_symbeg, ":"], [[1, 1], :on_kw, "class"]]

I'm thinking the output should be:

[[[1, 0], :on_symbeg, ":"], [[1, 1], :on_ident, "class"]]

Seems like a bug ?
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0