diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-06 19:09:35 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-06 19:09:35 -0700 |
commit | 5bbc0d44482b05c9467b737c4e217d5501203fc7 (patch) | |
tree | 063257d42ae2d289f7efb03b2ca022e5c9b1c3b3 /pygments/lexers/ruby.py | |
parent | 8182f8ecafd849532737331f5b71ed099521f729 (diff) | |
download | pygments-5bbc0d44482b05c9467b737c4e217d5501203fc7.tar.gz |
Correct accidental punctuation range in RubyLexer.
Fixes #1006
Diffstat (limited to 'pygments/lexers/ruby.py')
-rw-r--r-- | pygments/lexers/ruby.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/ruby.py b/pygments/lexers/ruby.py index eadb670d..e9973eea 100644 --- a/pygments/lexers/ruby.py +++ b/pygments/lexers/ruby.py @@ -306,7 +306,7 @@ class RubyLexer(ExtendedRegexLexer): (r'[A-Z]\w+', Name.Constant), # this is needed because ruby attributes can look # like keywords (class) or like this: ` ?!? - (r'(\.|::)([a-zA-Z_]\w*[\!\?]?|[*%&^`~+-/\[<>=])', + (r'(\.|::)([a-zA-Z_]\w*[\!\?]?|[*%&^`~+\-/\[<>=])', bygroups(Operator, Name)), (r'[a-zA-Z_]\w*[\!\?]?', Name), (r'(\[|\]|\*\*|<<?|>>?|>=|<=|<=>|=~|={3}|' |