summaryrefslogtreecommitdiffstats
path: root/lexer/theme-lexer.l
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2021-06-14 19:29:05 +0200
committerDave Davenport <qball@blame.services>2021-06-14 19:29:05 +0200
commit0f21541327418e7aaa99a8192eb79ed9c6438b88 (patch)
treecda6a54d5ee059c796fcb7b24ab1abb9bc706bc5 /lexer/theme-lexer.l
parent828aaa231a84f9ad23cf836a71b58290b5e217e8 (diff)
[Configuration] Add start of more 'theme' based configuration.
Nested CSS blocks in configuration {} are parsed into rofi_configuration.
Diffstat (limited to 'lexer/theme-lexer.l')
-rw-r--r--lexer/theme-lexer.l8
1 files changed, 8 insertions, 0 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l
index 6a291a00..394afa98 100644
--- a/lexer/theme-lexer.l
+++ b/lexer/theme-lexer.l
@@ -474,6 +474,14 @@ if ( queue == NULL ){
return T_LINK;
}
+<SECTION>"\{" {
+ // Double to fit in scheme.
+ g_queue_push_head ( queue, GINT_TO_POINTER (YY_START) );
+ g_queue_push_head ( queue, GINT_TO_POINTER (SECTION) );
+ BEGIN(SECTION);
+ return T_BOPEN;
+}
+
<PROPERTIES,PROPERTIES_ENV,PROPERTIES_VAR_DEFAULT>{EM} { return T_UNIT_EM; }
<PROPERTIES,PROPERTIES_ENV,PROPERTIES_VAR_DEFAULT>{CH} { return T_UNIT_CH; }
<PROPERTIES,PROPERTIES_ENV,PROPERTIES_VAR_DEFAULT,MEDIA_CONTENT>{PX} { return T_UNIT_PX; }