pygments.rb 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/pygments/version.rb
CHANGED
@@ -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.
|
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.
|
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:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 11
|
10
|
+
version: 0.2.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aman Gupta
|