[template-glib] expr-scanner.l: use ; to send EOL
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] expr-scanner.l: use ; to send EOL
- Date: Wed, 4 May 2022 22:07:20 +0000 (UTC)
commit 4219f2f3d5488bd7c7ceab5e7d374804eb8c5616
Author: Christian Hergert <chergert redhat com>
Date: Wed May 4 15:06:07 2022 -0700
expr-scanner.l: use ; to send EOL
This can be used to end things on a single line where you might not
otherwise be able to.
src/tmpl-expr-scanner.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tmpl-expr-scanner.l b/src/tmpl-expr-scanner.l
index 0ddb0b7..c6c240f 100644
--- a/src/tmpl-expr-scanner.l
+++ b/src/tmpl-expr-scanner.l
@@ -52,7 +52,6 @@ TmplExprParser *parser = yyextra;
"=" |
"," |
"." |
-";" |
"!" |
"(" |
")" { return yytext [0]; }
@@ -117,6 +116,7 @@ L?\"(\\.|[^\\"])*\" { yylval->s = copy_literal (yytext); return STRING_LITERAL;
[ \t] /* ignore whitespace */
#[^\n]* { return EOL; } /* line-wise comments should EOL things */
"\n" { return EOL; }
+";" { return EOL; }
<<EOF>> { parser->reached_eof = TRUE; return EOL; }
. {
g_free (parser->error_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]