Changeset 50 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar
- Timestamp:
- 12/16/04 13:55:34 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r42 r50 25 25 } 26 26 27 form_spec: (list_def | description_def | validate_def | group_def | line)(s)27 form_spec: (list_def | description_def | validate_def | group_def | note | line)(s) 28 28 { 29 29 # grab the last section, if there is any … … 84 84 } 85 85 86 note: '!note' <perl_codeblock> 87 { 88 (my $note = $item[2]) =~ s/^{\s*|\s*}$//g; 89 push @lines, [ 'note', $note ]; 90 } 91 92 86 93 field_line: <skip:'[ \t]*'> ( field | comment | blank ) "\n" 87 94 line: <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.