Changeset 57 in text-formbuilder for trunk/lib/Text/FormBuilder
- Timestamp:
- 01/18/05 15:19:14 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r56 r57 68 68 } 69 69 70 description_def: '!description' <perl_codeblock>70 description_def: '!description' block 71 71 { warn "[Text::FormBuilder] Description redefined at input text line $thisline\n" if defined $description; 72 72 … … 85 85 } 86 86 87 note: '!note' <perl_codeblock>87 note: '!note' block 88 88 { 89 89 (my $note = $item[2]) =~ s/^{\s*|\s*}$//g; … … 91 91 } 92 92 93 # curly-brace delimited block, that can contain properly 94 # nested curly brackets, along with any other characters 95 # return with the '{...}' so that nested blocks get the 96 # brackets treated as literals 97 block: '{' <skip:''> block_content(s) '}' 98 { 99 '{' . join('', @{ $item[3] }) . '}'; 100 } 101 102 block_content: /[^\{\}]+?/ | block 103 93 104 94 105 field_line: <skip:'[ \t]*'> ( field | comment | blank ) "\n" … … 97 108 title: '!title' /.*/ 98 109 { 99 warn "[Text::Form builder] Title redefined at input text line $thisline\n" if defined $title;110 warn "[Text::FormBuilder] Title redefined at input text line $thisline\n" if defined $title; 100 111 $title = $item[2]; 101 112 } … … 103 114 author: '!author' /.*/ 104 115 { 105 warn "[Text::Form builder] Author redefined at input text line $thisline\n" if defined $author;116 warn "[Text::FormBuilder] Author redefined at input text line $thisline\n" if defined $author; 106 117 $author = $item[2]; 107 118 }
Note: See TracChangeset
for help on using the changeset viewer.