Browse Source

Fix the lexer identification of uid's in properties.

Andrew Young 8 years ago
parent
commit
93dbb78745
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/org_lexer.l

+ 3 - 3
src/org_lexer.l

@@ -52,13 +52,13 @@ extern void yyerror (char const  *);
   BEGIN (INITIAL);
 }
 
-<properties>[ ]*":ID: " { /*UID Property */
+<properties>[ ]*":ID " { /*UID Property */
   printf ("UID: ");
   BEGIN (uid);
 }
 
-<uid>.* {
-  fwrite (yytext, sizeof(char), yyleng, stdout);
+<uid>.*":" {
+  fwrite (yytext, sizeof(char), yyleng-1, stdout);
   printf ("\n");
   BEGIN (properties);
 }