Skip to content

Ruby: Non-ASCII Method Names Not Recognised #253

@Anteru

Description

@Anteru

(Original issue 474 created by None on 2010-02-07T23:12:41+00:00)

Ruby 1.9 allows method names to include non-ASCII characters with the following caveats:

  • The characters must be valid in the file's source encoding.

  • A legal method name that does not end with '!', '?', or '=' may have one of these characters appended.

  • The ASCII punctuation characters of which operator methods consist (e.g. {{{[*%&^`~+-/\[<>=]}}}) must not appear in any other permutation, with the exception of the above case.

Pygments does not recognise such method names, lexing the first non-ASCII character as an error. Examples of unrecognised method names are given in http://pygments.org/demo/3147/ .

Reported by guest

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-majorseverity: majorT-bugtype: a bugX-importedimported from Bitbucket

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions