X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/d52e64e92557f0b6d7704077ec175c88fa7ca243..8445442abc02fc325a9ce228759403113583818c:/src/lexer.l diff --git a/src/lexer.l b/src/lexer.l index 0dc3cda..d59a3d9 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -22,7 +22,7 @@ */ %{ -#include "config.h" +#include "config.h" #include #include #include @@ -514,6 +514,12 @@ flags { return FLAGS; } . { add_to_cbuf(yytext); } \n { add_to_cbuf(yytext); } +\" { + BEGIN(CLASS_STRING); + before_string = CLASS_CODE_I; + add_to_cbuf(yytext); + } + void {return VOID;} struct {return STRUCT;} union {return UNION;} @@ -544,6 +550,7 @@ flags { return FLAGS; } return PROPERTY; } nick { yylval.line = line_no; return NICK; } +name { yylval.line = line_no; return NAME; } blurb { yylval.line = line_no; return BLURB; } maximum { yylval.line = line_no; return MAXIMUM; } minimum { yylval.line = line_no; return MINIMUM; }