summaryrefslogtreecommitdiff
path: root/sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex
diff options
context:
space:
mode:
Diffstat (limited to 'sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex')
-rw-r--r--sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex25
1 files changed, 22 insertions, 3 deletions
diff --git a/sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex b/sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex
index 1ad9735..48a913a 100644
--- a/sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex
+++ b/sdl-test/SDL_tuto/TestParserLemmingsLVL/parse_ini.lex
@@ -66,7 +66,7 @@ COMMENT "#"[^\n]*
BEGIN(STR_M);
return STYLE;
}
-"name" {
+"name" {
printf("name\n");
printf("--AUTO STR_M--\n");
BEGIN(STR_M);
@@ -78,6 +78,25 @@ COMMENT "#"[^\n]*
BEGIN(STR_M);
return SLEM;
}
+"bgColor" {
+ printf("bgColor\n");
+ printf("--AUTO STR_M--\n");
+ BEGIN(STR_M);
+ return BGCOLOR;
+ }
+"debrisColor" {
+ printf("debrisColor\n");
+ printf("--AUTO STR_M--\n");
+ BEGIN(STR_M);
+ return DEBRISCOLOR;
+ }
+"particleColor" {
+ printf("particleColor\n");
+ printf("--AUTO STR_M--\n");
+ BEGIN(STR_M);
+ return PARTICLECOLOR;
+ }
+
<STR_M>{BLANK}*"="{BLANK}* {
printf("STR_M-> [=]\n");
printf("--AUTO STR_MM--\n");
@@ -106,10 +125,10 @@ COMMENT "#"[^\n]*
}
"#"[^\n]*\n {
- printf("[COMMENT]\n[\\n]\n");
+ printf("[COMMENT:%s]\n[\\n]\n",yytext);
yylineno++;
} /* Single line Comment*/
-
+\r /* http://fr.wikipedia.org/wiki/Fin_de_ligne : CRLF*/
\n {
printf("[\\n]\n");
yylineno++;