/[CvsGraph]/cvsgraph/rcsy.y
ViewVC logotype

Diff of /cvsgraph/rcsy.y

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5, Thu Jul 15 15:12:07 2004 UTC revision 1.6, Fri Jul 16 13:07:58 2004 UTC
# Line 254  Line 254 
254          | tags                          { $$ = $1; }          | tags                          { $$ = $1; }
255          ;          ;
256    
257  tags    : tag                           { $$ = new_tags($1); }  tags    : tag                           { if($1) $$ = new_tags($1); else $$ = NULL; }
258          | tags tag                      { $$ = add_tags($1, $2); }          | tags tag                      { if($1 && $2) $$ = add_tags($1, $2); else if($2) $$ = new_tags($2); else $$ = $1; }
259          ;          ;
260    
261  tag     : tSYM ':' tREV                 { set_sym(); $$ = new_tag($1, $3); }  tag     : tSYM ':' tREV                 { set_sym(); $$ = new_tag($1, $3); }
262     /* Zap the additional tag-info from CVSNT */
263     /* This is a bit of a hack, but it is necessary to do like this */
264     /* because the parser is not allowed to do any look-ahead on ':'. */
265     /* Otherwise, we would have a tNEWPHRASE hit because we cannot set */
266     /* set_sym() before the lexer gets the next token. */
267            | ':' tREV ':' tSTRING          { set_sym(); $$ = NULL; }
268          ;          ;
269    
270  %%  %%

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0