Changeset 50 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar


Ignore:
Timestamp:
12/16/04 13:55:34 (19 years ago)
Author:
peichman
Message:

fallthrough to CGI::FormBuilder builtin lists working (again); added a !note directive; discovered bug in parsing of !directive and !note

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Text/FormBuilder/grammar

    r42 r50  
    2525} 
    2626 
    27 form_spec: (list_def | description_def | validate_def | group_def | line)(s) 
     27form_spec: (list_def | description_def | validate_def | group_def | note | line)(s) 
    2828    { 
    2929        # grab the last section, if there is any 
     
    8484    } 
    8585 
     86note: '!note' <perl_codeblock> 
     87    {    
     88        (my $note = $item[2]) =~ s/^{\s*|\s*}$//g; 
     89        push @lines, [ 'note', $note ]; 
     90    } 
     91 
     92 
    8693field_line: <skip:'[ \t]*'> ( field | comment | blank ) "\n" 
    8794line: <skip:'[ \t]*'> ( title | author | pattern_def | section_head | heading | group_field | unknown_directive | field | comment | blank ) "\n" 
Note: See TracChangeset for help on using the changeset viewer.