Changeset 3485
- Timestamp:
- Mar 23, 2005, 11:30:37 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Metadata-Config/lib/PS/IPP/Metadata/Config.pm
r3483 r3485 1 1 # Copyright (c) 2005 Joshua Hoblitt 2 2 # 3 # $Id: Config.pm,v 1.1 0 2005-03-23 19:25:53jhoblitt Exp $3 # $Id: Config.pm,v 1.11 2005-03-23 21:30:37 jhoblitt Exp $ 4 4 5 5 package PS::IPP::Metadata::Config; … … 69 69 { 70 70 $thisparser->{local} = pop @scope_stack; 71 [ grep $_->{class} !~ / (comment_line|blank_line)/, @{$item[1]} ];71 [ grep $_->{class} !~ /comment_line/, @{$item[1]} ]; 72 72 } 73 73 … … 78 78 | comment_line 79 79 | metadata 80 | blank_line81 80 | time 82 81 | typedef_declare … … 116 115 <skip:'[ \t\r]*'> name /MULTI/i comment(?) "\n" 117 116 {{ 118 class => 'blank_line',119 }}120 121 comment_line:122 <skip:'[ \t\r]*'> comment "\n"123 {{124 117 class => 'comment_line', 125 comment => $item{comment},126 118 }} 127 119 … … 146 138 | <error?:bad METADATA syntax: $text> <reject> 147 139 148 blank_line: 149 <skip:'[ \t\r]*'> "\n" 150 {{ 151 class => 'blank_line', 152 }} 140 comment_line: 141 <skip:'[ \t\r]*'> comment(?) "\n" 142 {{ class => 'comment_line' }} 153 143 154 144 time: … … 186 176 187 177 # don't return anything in the parse tree 188 $return = { class => ' blank_line' };178 $return = { class => 'comment_line' }; 189 179 } 190 180 }
Note:
See TracChangeset
for help on using the changeset viewer.
