[Redbutton-devel] SF.net SVN: redbutton: [415] redbutton-author/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-09-23 19:16:36
|
Revision: 415
http://redbutton.svn.sourceforge.net/redbutton/?rev=415&view=rev
Author: skilvington
Date: 2007-09-23 12:16:23 -0700 (Sun, 23 Sep 2007)
Log Message:
-----------
pull out whole unknown words, rather than a char at a time
Modified Paths:
--------------
redbutton-author/trunk/parser.l.footer
redbutton-author/trunk/tokens.h.header
Modified: redbutton-author/trunk/parser.l.footer
===================================================================
--- redbutton-author/trunk/parser.l.footer 2007-09-22 18:35:40 UTC (rev 414)
+++ redbutton-author/trunk/parser.l.footer 2007-09-23 19:16:23 UTC (rev 415)
@@ -1,4 +1,5 @@
-. return INVALID;
+[a-z0-9:]+ return UNKNOWN_WORD;
+. return INVALID_CHAR;
%%
void
Modified: redbutton-author/trunk/tokens.h.header
===================================================================
--- redbutton-author/trunk/tokens.h.header 2007-09-22 18:35:40 UTC (rev 414)
+++ redbutton-author/trunk/tokens.h.header 2007-09-23 19:16:23 UTC (rev 415)
@@ -1,9 +1,10 @@
#define END_OF_SRC 0 /* must be 0 */
#define COMMENT 1
-#define INVALID 2
-#define INTEGER 3
-#define BOOLEAN 4
-#define STRING 5
-#define QPRINTABLE 6
-#define BASE64 7
-#define Null 8
+#define UNKNOWN_WORD 2
+#define INVALID_CHAR 3
+#define INTEGER 4
+#define BOOLEAN 5
+#define STRING 6
+#define QPRINTABLE 7
+#define BASE64 8
+#define Null 9
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|