Changeset 22 in text-formbuilder
- Timestamp:
- 11/15/04 15:47:29 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder/grammar
r21 r22 142 142 { $rows = $item[1]; $cols = $item[3] } 143 143 144 #TODO: zero width labels 145 label: '|' /[^:\[\{\/\n]*/i { $item[2] } 144 label: '|' (simple_multiword | quoted_string) { $item[2] } 146 145 147 146 hint: '[' /[^\]]+/ ']' { $item[2] } … … 149 148 type: ':' /textarea|text|password|file|checkbox|radio|select|hidden|static/ 150 149 151 default: '=' /[^\@\{\s]+/ 150 default: '=' (simple_multiword | quoted_string) { $item[2] } 151 152 # for simple multiword values not involving punctuation 153 simple_multiword: <skip:''> /[\w\t ]+/ { $item[2] } 154 155 # my attempt at a single-quoted, non-interpolating string 156 # where the backslash can escape literal single quotes 157 quoted_string: <skip:''> "'" /(\\'|[^'])*/ "'" 158 { $item[3] =~ s/\\'/'/g; $item[3] } 152 159 153 160 option_list: options | list_var
Note: See TracChangeset
for help on using the changeset viewer.