Changeset 1100
- Timestamp:
- 2008-07-16 22:04:34 (6 months ago)
- Files:
-
- trunk/lib/parser/lib/rules/zazen.rb (modified) (2 diffs)
- trunk/lib/parser/test/parser/zazen.yml (modified) (1 diff)
- trunk/test/helpers/zena_parser/zazen.yml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/parser/lib/rules/zazen.rb
r1016 r1100 250 250 251 251 def scan_bracket 252 # puts "BRACKET:[#{@text}]"252 # puts "BRACKET:[#{@text}]" 253 253 if @text =~ /\A\[(\w+)\](.*?)\[\/\1\]/m 254 254 if @parse_shortcuts … … 261 261 else 262 262 # nothing interesting 263 flush 263 flush '[' 264 264 end 265 265 end trunk/lib/parser/test/parser/zazen.yml
r1061 r1100 30 30 end</code> 31 31 res: "/some text.*<pre>.*<code class='ruby'>.*keyword.*method.*<</" 32 33 34 img_after_brackets: 35 src: | 36 Text updated in [July 2008]. 37 38 !30.full! 39 res: "<p>Text updated in [July 2008].</p>\n\n\n\t<p>[make_image id:|30| images:true mode:|full| style:||]</p>" 32 40 33 41 code_params: trunk/test/helpers/zena_parser/zazen.yml
r1049 r1100 67 67 tem: "<%= zazen('Look !{30,:lake+}!') %>" 68 68 res: "/docs.*image30_mini.*image24_mini.*/" 69 70 img_after_brackets: 71 tem: "<%= zazen('Text updated in [July 2008].\n\n!30.full!\n') %>" 72 res: "<p>Text updated in [July 2008].</p>\n\n\n\t<p><img src=\"/en/30.full\" alt=\"\" /></p>" 69 73 70 74 line_break_between_paragraphs:
