IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3485


Ignore:
Timestamp:
Mar 23, 2005, 11:30:37 AM (21 years ago)
Author:
jhoblitt
Message:

merge blank_line & comment_line into just comment_line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/lib/PS/IPP/Metadata/Config.pm

    r3483 r3485  
    11# Copyright (c) 2005  Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.10 2005-03-23 19:25:53 jhoblitt Exp $
     3# $Id: Config.pm,v 1.11 2005-03-23 21:30:37 jhoblitt Exp $
    44
    55package PS::IPP::Metadata::Config;
     
    6969        {
    7070            $thisparser->{local} = pop @scope_stack;
    71             [ grep $_->{class} !~ /(comment_line|blank_line)/, @{$item[1]} ];
     71            [ grep $_->{class} !~ /comment_line/, @{$item[1]} ];
    7272        }
    7373
     
    7878    | comment_line
    7979    | metadata
    80     | blank_line
    8180    | time
    8281    | typedef_declare
     
    116115    <skip:'[ \t\r]*'> name /MULTI/i comment(?) "\n"
    117116        {{
    118             class   => 'blank_line',
    119         }}
    120 
    121 comment_line:
    122     <skip:'[ \t\r]*'> comment "\n"
    123         {{
    124117            class   => 'comment_line',
    125             comment => $item{comment},
    126118        }}
    127119
     
    146138    | <error?:bad METADATA syntax: $text> <reject>
    147139
    148 blank_line:
    149     <skip:'[ \t\r]*'> "\n"
    150         {{
    151             class   => 'blank_line',
    152         }}
     140comment_line:
     141    <skip:'[ \t\r]*'> comment(?) "\n"
     142        {{ class   => 'comment_line' }}
    153143
    154144time:
     
    186176
    187177                # don't return anything in the parse tree
    188                 $return = { class => 'blank_line' };
     178                $return = { class => 'comment_line' };
    189179            }
    190180        }
Note: See TracChangeset for help on using the changeset viewer.