pygments.rb 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Pygments
2
- VERSION = '0.2.10'
2
+ VERSION = '0.2.11'
3
3
  end
@@ -50,7 +50,7 @@ class Dasm16Lexer(RegexLexer):
50
50
 
51
51
  def guess_identifier(lexer, match):
52
52
  ident = match.group(0)
53
- klass = Name.Variable if ident.lower() in lexer.REGISTERS else Name.Label
53
+ klass = Name.Variable if ident.upper() in lexer.REGISTERS else Name.Label
54
54
  yield match.start(), klass, ident
55
55
 
56
56
  tokens = {
@@ -50,7 +50,7 @@ class Dasm16Lexer(RegexLexer):
50
50
 
51
51
  def guess_identifier(lexer, match):
52
52
  ident = match.group(0)
53
- klass = Name.Variable if ident.lower() in lexer.REGISTERS else Name.Label
53
+ klass = Name.Variable if ident.upper() in lexer.REGISTERS else Name.Label
54
54
  yield match.start(), klass, ident
55
55
 
56
56
  tokens = {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pygments.rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 10
10
- version: 0.2.10
9
+ - 11
10
+ version: 0.2.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aman Gupta