Changeset 56 in text-formbuilder for trunk/lib/Text/FormBuilder/grammar
- Timestamp:
- 01/13/05 15:00:25 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r55 r56 19 19 $list_var, 20 20 $size, 21 $maxlength, 21 22 $rows, 22 23 $cols, … … 157 158 $$field{cols} = $cols if defined $cols; 158 159 $$field{size} = $size if defined $size; 160 $$field{maxlength} = $maxlength if defined $maxlength; 159 161 160 162 #warn "[$thisline] field $item{name}; context $context\n"; … … 171 173 $rows = undef; 172 174 $cols = undef; 175 $maxlength = undef; 173 176 @options = (); 174 177 … … 181 184 field_size: '[' ( row_col | size ) ']' 182 185 183 size: /\d+/ 184 { $size = $item[1] } 186 size: /\d+/ bang(?) 187 { $maxlength = $item[1] if $item[2][0]; $size = $item[1] } 188 189 bang: '!' 185 190 186 191 row_col: /\d+/ /,\s*/ /\d+/
Note: See TracChangeset
for help on using the changeset viewer.