diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-01 01:31:25 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-01 01:31:25 +0100 |
commit | e29f89e4014a75c6a600e6bb54709fbbf33e6c88 (patch) | |
tree | 8b23f68336e8e4365831efe3190bc493365e2e0a /lexer | |
parent | d35e70d817d172c62de2ad486bdadaa8f55ecf60 (diff) |
Reorder padding order, support 1,2,3,4 entries.
Diffstat (limited to 'lexer')
-rw-r--r-- | lexer/theme-parser.y | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index 6ee70032..e2f7795f 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -173,6 +173,16 @@ property $$->name = $1; $$->value.padding = (Padding){ $3, $3, $3, $3 }; } +| pvalue PSEP T_PIXEL T_PIXEL PCLOSE { + $$ = rofi_theme_property_create ( P_PADDING ); + $$->name = $1; + $$->value.padding = (Padding){ $3, $4, $3, $4 }; +} +| pvalue PSEP T_PIXEL T_PIXEL T_PIXEL PCLOSE { + $$ = rofi_theme_property_create ( P_PADDING ); + $$->name = $1; + $$->value.padding = (Padding){ $3, $4, $5, $4 }; +} | pvalue PSEP T_PIXEL T_PIXEL T_PIXEL T_PIXEL PCLOSE { $$ = rofi_theme_property_create ( P_PADDING ); $$->name = $1; |