herbgobbler 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/grammer/erb_grammer.treetop +5 -5
  2. metadata +4 -4
@@ -103,7 +103,7 @@ grammar ERBGrammer
103
103
  end
104
104
 
105
105
  rule ignorable_javascript_tag
106
- not_combindable_erb_block_start whitespace* 'javascript_tag' (!(not_combindable_erb_block_start whitespace* 'end' whitespace* not_combindable_erb_block_end) .)+ <IgnorableTagNode>
106
+ not_combindable_erb_block_start whitespace* 'javascript_tag' (!(not_combindable_erb_block_start space 'end' space not_combindable_erb_block_end) .)+ <IgnorableTagNode>
107
107
  {
108
108
  def can_be_combined?
109
109
  false
@@ -141,7 +141,7 @@ grammar ERBGrammer
141
141
  end
142
142
 
143
143
  rule not_combindable_erb_block_start
144
- ('<%' / '<%-') <NonTextNode>
144
+ ('<%-' / '<%') <NonTextNode>
145
145
  {
146
146
  def node_name
147
147
  "not_combindable_erb_block_start"
@@ -156,7 +156,7 @@ grammar ERBGrammer
156
156
  end
157
157
 
158
158
  rule not_combindable_erb_block_end
159
- ('%>' / '-%>') <NonTextNode>
159
+ ('-%>' / '%>') <NonTextNode>
160
160
  {
161
161
  def node_name
162
162
  "not_combindable_erb_block_end"
@@ -277,9 +277,9 @@ grammar ERBGrammer
277
277
  end
278
278
  }
279
279
  end
280
-
280
+
281
281
  rule whitespace
282
- ((![a-zA-Z] !('<' [a-zA-Z]+) !('</' [a-zA-Z]+) !'<%' !'"') . )+ <NonTextNode>
282
+ ((![a-zA-Z] !('<' [a-zA-Z]+) !('</' [a-zA-Z]+) !'<%' !'"' ) . )+ <NonTextNode>
283
283
  {
284
284
  def can_be_combined?
285
285
  true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herbgobbler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Douglas Sellers
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-28 00:00:00 -08:00
18
+ date: 2012-02-29 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency