coderay_bash 1.0.2 → 1.0.3
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 +6 -8
- metadata +12 -7
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.3'
|
17
17
|
s.date = Time.now.strftime("%Y-%m-%d")
|
18
18
|
s.add_dependency('coderay', '>= 1.0')
|
19
19
|
s.require_path = 'lib'
|
@@ -85,7 +85,7 @@ module CodeRay module Scanners
|
|
85
85
|
kind = :directive
|
86
86
|
elsif match = scan(/\s*#.*/)
|
87
87
|
kind = :comment
|
88
|
-
elsif match = scan(
|
88
|
+
elsif match = scan(/[^"]#/)
|
89
89
|
kind = :ident
|
90
90
|
elsif match = scan(/(?:\. |source ).*/)
|
91
91
|
kind = :reserved
|
@@ -146,13 +146,11 @@ module CodeRay module Scanners
|
|
146
146
|
encoder.begin_group :shell
|
147
147
|
encoder.text_token(match, :delimiter)
|
148
148
|
next
|
149
|
-
elsif match = scan(/ \) /ox)
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
next
|
155
|
-
end
|
149
|
+
elsif @brace_shell > 0 && match = scan(/ \) /ox)
|
150
|
+
encoder.text_token(match, :delimiter)
|
151
|
+
encoder.end_group :shell
|
152
|
+
@brace_shell -= 1
|
153
|
+
next
|
156
154
|
elsif match = scan(PRE_CONSTANTS)
|
157
155
|
kind = :predefined_constant
|
158
156
|
elsif match = scan(/[^\s'"]*[A-Za-z_][A-Za-z_0-9]*\+?=/)
|
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.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderay
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
25
30
|
description: ! 'Bash highlighting for coderay. This gem was tested with coderay 1.0
|
26
31
|
and won''t work with coderay < 1.0.
|
27
32
|
|
@@ -34,9 +39,9 @@ files:
|
|
34
39
|
- README.md
|
35
40
|
- coderay_bash.gemspec
|
36
41
|
- Rakefile
|
37
|
-
- lib/coderay_bash.rb
|
38
|
-
- lib/coderay/scanners/bash.rb
|
39
42
|
- lib/coderay/scanners/erb_bash.rb
|
43
|
+
- lib/coderay/scanners/bash.rb
|
44
|
+
- lib/coderay_bash.rb
|
40
45
|
homepage: http://github.com/pejuko/coderay_bash
|
41
46
|
licenses: []
|
42
47
|
post_install_message: ! 'This gem was tested with coderay 1.0 and won''t work with
|
@@ -60,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
65
|
version: '0'
|
61
66
|
requirements: []
|
62
67
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.8.
|
68
|
+
rubygems_version: 1.8.24
|
64
69
|
signing_key:
|
65
70
|
specification_version: 3
|
66
71
|
summary: Simple bash scanner for highlighting with coderay.
|