coderay_bash 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/coderay_bash.gemspec +1 -1
- data/lib/coderay/scanners/bash.rb +4 -2
- metadata +2 -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 = '1.0.
|
16
|
+
s.version = '1.0.4'
|
17
17
|
s.date = Time.now.strftime("%Y-%m-%d")
|
18
18
|
s.add_dependency('coderay', '>= 1.0')
|
19
19
|
s.require_path = 'lib'
|
@@ -87,7 +87,9 @@ module CodeRay module Scanners
|
|
87
87
|
kind = :comment
|
88
88
|
elsif match = scan(/[^"]#/)
|
89
89
|
kind = :ident
|
90
|
-
elsif match = scan(
|
90
|
+
elsif match = scan(/\.\.+/)
|
91
|
+
kind = :plain
|
92
|
+
elsif match = scan(/(?:\.|source)\s+/)
|
91
93
|
kind = :reserved
|
92
94
|
elsif match = scan(/(?:\\.|,)/)
|
93
95
|
kind = :plain
|
@@ -264,7 +266,7 @@ module CodeRay module Scanners
|
|
264
266
|
|
265
267
|
|
266
268
|
def match_array(match, encoder)
|
267
|
-
match =~ /(
|
269
|
+
match =~ /(.+)\[(.*?)\]/
|
268
270
|
var = $1
|
269
271
|
key = $2
|
270
272
|
kind = IDENT_KIND[var]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coderay_bash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderay
|