Fix inconsistent use of tabs and spaces

This commit is contained in:
Chuan Wei Foo 2021-02-04 02:39:34 +08:00 committed by GitHub
parent ae86c97ea6
commit aa77fb82d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -970,12 +970,12 @@ The Lexer file changes a bit too:
%}
%%
[0-9]+ yylval.number=atoi(yytext); return NUMBER;
heater return TOKHEATER;
heater return TOKHEATER;
heat return TOKHEAT;
on|off yylval.number=!strcmp(yytext,"on"); return STATE;
target return TOKTARGET;
temperature return TOKTEMPERATURE;
[a-z0-9]+ yylval.string=strdup(yytext); return WORD;
[a-z0-9]+ yylval.string=strdup(yytext); return WORD;
\n /* ignore end of line */;
[ \t]+ /* ignore whitespace */;
%%