Ruby: 'type' is no Name.builtin

Issue #517 resolved
Former user created an issue

Here's a patch:

--- pygments-main/pygments/lexers/agile.py 2010-07-24 21:41:30.131061400 +0200
+++ pygments-main/pygments/lexers/agile.py.fixed 2010-07-24 21:45:14.271686400 +0200
@@ -623,7 +623,7 @@
r'putc|puts|raise|rand|readline|readlines|require|'
r'scan|select|self|send|set_trace_func|singleton_methods|sleep|'
r'split|sprintf|srand|sub|syscall|system|taint|'
- r'test|throw|to_a|to_s|trace_var|trap|type|untaint|untrace_var|'
+ r'test|throw|to_a|to_s|trace_var|trap|untaint|untrace_var|'
r'warn)\b', Name.Builtin),
(r'(FILE|LINE)\b', Name.Builtin.Pseudo),
# normal heredocs

Reported by guest

Comments (3)

  1. Anonymous

    Now as a code block:

    --- pygments-main/pygments/lexers/agile.py.old	2010-07-24 21:41:30.131061400 +0200
    +++ pygments-main/pygments/lexers/agile.py	2010-07-24 21:45:14.271686400 +0200
    @@ -623,7 +623,7 @@
                  r'putc|puts|raise|rand|readline|readlines|require|'
                  r'scan|select|self|send|set_trace_func|singleton_methods|sleep|'
                  r'split|sprintf|srand|sub|syscall|system|taint|'
    -             r'test|throw|to_a|to_s|trace_var|trap|type|untaint|untrace_var|'
    +             r'test|throw|to_a|to_s|trace_var|trap|untaint|untrace_var|'
                  r'warn)\\b', Name.Builtin),
                 (r'__(FILE|LINE)__\\b', Name.Builtin.Pseudo),
                 # normal heredocs
    
  2. Log in to comment