coderay_bash 0.1 → 0.1.1
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/coderay_bash.gemspec +1 -1
- data/lib/coderay/scanners/bash.rb +3 -2
- metadata +3 -2
data/coderay_bash.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s|
|
|
|
13
13
|
s.email = "pejuko@gmail.com"
|
|
14
14
|
s.authors = ["Petr Kovar"]
|
|
15
15
|
s.name = 'coderay_bash'
|
|
16
|
-
s.version = '0.1'
|
|
16
|
+
s.version = '0.1.1'
|
|
17
17
|
s.date = Time.now.strftime("%Y-%m-%d")
|
|
18
18
|
s.add_dependency('coderay', '< 1.0')
|
|
19
19
|
s.require_path = 'lib'
|
|
@@ -140,8 +140,9 @@ module CodeRay::Scanners
|
|
|
140
140
|
elsif match = scan(/[^ \$"'`\d]/)
|
|
141
141
|
kind = :plain
|
|
142
142
|
elsif match = scan(/.+/)
|
|
143
|
-
# this shouldn't be
|
|
144
|
-
kind = :reserved
|
|
143
|
+
# this shouldn't be :reserved for highlighting bad matches
|
|
144
|
+
#kind = :reserved
|
|
145
|
+
kind = :plain
|
|
145
146
|
end
|
|
146
147
|
elsif state == :quote
|
|
147
148
|
if (match = scan(/\\./))
|
metadata
CHANGED