summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/extra/gen/scanner.l
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-04 14:37:04 +0100
committerHaru <haru@dotalux.com>2013-11-04 14:37:04 +0100
commit7e248a309cc3129a2e790fd413dea80eaa03db56 (patch)
treed965abed31dcacc77eadd8399d8f884f35da4941 /3rdparty/libconfig/extra/gen/scanner.l
parent7e68906ef18a55cdffcd29730060c108ee9b9bf8 (diff)
downloadhercules-7e248a309cc3129a2e790fd413dea80eaa03db56.tar.gz
hercules-7e248a309cc3129a2e790fd413dea80eaa03db56.tar.bz2
hercules-7e248a309cc3129a2e790fd413dea80eaa03db56.tar.xz
hercules-7e248a309cc3129a2e790fd413dea80eaa03db56.zip
Follow-up to 3b0cd11f980a48b903262c857fde1cd9c784c2e0
- Changed <? ?> to <" "> after some further brainstorming. Special thanks to Yommy. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '3rdparty/libconfig/extra/gen/scanner.l')
-rw-r--r--3rdparty/libconfig/extra/gen/scanner.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/libconfig/extra/gen/scanner.l b/3rdparty/libconfig/extra/gen/scanner.l
index a7befd11d..4b3048fab 100644
--- a/3rdparty/libconfig/extra/gen/scanner.l
+++ b/3rdparty/libconfig/extra/gen/scanner.l
@@ -129,9 +129,9 @@ include_open ^[ \t]*@include[ \t]+\"
return(TOK_STRING);
}
-\<\? { BEGIN SCRIPTBLOCK; }
-<SCRIPTBLOCK>([^\?]|\?[^\>])+ { scanctx_append_string(yyextra, yytext); }
-<SCRIPTBLOCK>\?\> {
+\<\" { BEGIN SCRIPTBLOCK; }
+<SCRIPTBLOCK>([^\"]|\"[^\>])+ { scanctx_append_string(yyextra, yytext); }
+<SCRIPTBLOCK>\"\> {
yylval->sval = scanctx_take_string(yyextra);
BEGIN INITIAL;
return(TOK_STRING);