[gthumb: 33/57] added the start condition to make the code clearer
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 33/57] added the start condition to make the code clearer
- Date: Sun, 20 Jun 2010 16:24:31 +0000 (UTC)
commit 6b58ccd8e9a4390fc5d76d91e5a7c8abede56146
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Jun 15 13:26:16 2010 +0200
added the start condition to make the code clearer
HTML tokens can be emitted only when the start condition is
INITIAL
extensions/webalbums/albumtheme.l | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/webalbums/albumtheme.l b/extensions/webalbums/albumtheme.l
index eb0feab..128b9f4 100644
--- a/extensions/webalbums/albumtheme.l
+++ b/extensions/webalbums/albumtheme.l
@@ -184,11 +184,11 @@ string [^']*
<ATTRIBUTES,QUOTE,CONDITION>[ \t\n] {
/* Eat spaces inside tag. */
}
-"<" {
+<INITIAL>"<" {
yylval.text = g_strdup (yytext);
return HTML;
}
-[^<]{1,100} {
+<INITIAL>[^<]{1,100} {
yylval.text = g_strdup (yytext);
return HTML;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]