/[CvsGraph]/cvsgraph/rcsl.l
ViewVC logotype

Diff of /cvsgraph/rcsl.l

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

revision 1.6, Thu Oct 21 21:40:35 2004 UTC revision 1.10, Mon Oct 3 20:40:25 2005 UTC
# Line 32  Line 32 
32  #include <string.h>  #include <string.h>
33  #include <ctype.h>  #include <ctype.h>
34    
35    #include <gd.h>
36    
37  #include "utils.h"  #include "utils.h"
38    #include "cvsgraph.h"
39  #include "readconf.h"  #include "readconf.h"
40  #include "rcs.h"  #include "rcs.h"
41  #include "rcs.tab.h"  #include "rcs.tab.h"
# Line 89  Line 92 
92  commitid                return tCOMMITID;  commitid                return tCOMMITID;
93  kopt                    return tKOPT;  kopt                    return tKOPT;
94  filename                return tFILENAME;  filename                return tFILENAME;
95    properties              return tPROPERTIES;
96    
97          /* Here come any other 'newphrase' constructs */          /* Here come any other 'newphrase' constructs */
98  {num}?{idchar}({idchar}|{num})*         {  {num}?{idchar}({idchar}|{num})*         {
# Line 140  Line 144 
144  <xAUTHOR>{ws}+  ;  <xAUTHOR>{ws}+  ;
145  <xAUTHOR>\n     line_number++;  <xAUTHOR>\n     line_number++;
146  <xAUTHOR>{special}      BEGIN(INITIAL); return *rcstext;  <xAUTHOR>{special}      BEGIN(INITIAL); return *rcstext;
147  <xAUTHOR>{num}?{idchar}({idchar}|{num})*                {  <xAUTHOR>({idchar}|{num}|{ws})+         {
148                  rcslval.str = xstrdup(rcstext);                  rcslval.str = xstrdup(rcstext);
149                  BEGIN(INITIAL);                  BEGIN(INITIAL);
150                  return tID;                  return tID;
151          }          }
152  <xAUTHOR>{num}?.        rcserror("Invalid character in ID '%s' (0x%02x)", rcstext, rcstext[yyleng-1]);  <xAUTHOR>.      rcserror("Invalid character in AUTHOR '%s' (0x%02x)", rcstext, rcstext[yyleng-1]);
153    
154  {ws}+           ; /* Ignore whitespace */  {ws}+           ; /* Ignore whitespace */
155  \n              line_number++;  \n              line_number++;

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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0