rouge 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rouge/lexers/ruby.rb +9 -6
- data/lib/rouge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c1f012f90e3c3277fabe104afa18e611c073778
|
4
|
+
data.tar.gz: c34f498e9cb500a930627725b54fbdb04bd102ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b4552a5ad0a7279fb22571f2957e4878117e7871f059925ffcc73ead40946052a89812972ec509ff8b0f852a65dbf696614a7b8940fc423e36dd6baf4c2b3f0
|
7
|
+
data.tar.gz: ead1ef4b73eb84cdf8dad9199310dabef600cf6404cf65c44677b399f092ba96d4cd0d7f19181137ca1b402571d7e96f6d39977acdf2ad76b37bb1f39a75b84d
|
data/lib/rouge/lexers/ruby.rb
CHANGED
@@ -341,16 +341,19 @@ module Rouge
|
|
341
341
|
end
|
342
342
|
|
343
343
|
state :method_call do
|
344
|
-
|
345
|
-
groups Text, Str::Regex
|
346
|
-
goto :slash_regex
|
347
|
-
end
|
344
|
+
mixin :whitespace
|
348
345
|
|
349
|
-
rule
|
350
|
-
|
346
|
+
rule %r([%/]=) do
|
347
|
+
token Operator
|
351
348
|
goto :expr_start
|
352
349
|
end
|
353
350
|
|
351
|
+
rule %r((/)(?=\S|\s*/)) do
|
352
|
+
token Str::Regex
|
353
|
+
groups Text, Str::Regex
|
354
|
+
goto :slash_regex
|
355
|
+
end
|
356
|
+
|
354
357
|
rule(%r((?=\s*/))) { pop! }
|
355
358
|
|
356
359
|
rule(/\s+/) { token Text; goto :expr_start }
|
data/lib/rouge/version.rb
CHANGED