Ticket #474 (new defect)
Opened 5 weeks ago
Ruby: Non-ASCII Method Names Not Recognised
| Reported by: | guest | Owned by: | gbrandl |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | lexers | Keywords: | |
| Cc: |
Description
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/ .
Note: See
TracTickets for help on using
tickets.