diff options
Diffstat (limited to 'lexer/theme-parser.y')
-rw-r--r-- | lexer/theme-parser.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index ed3fdb1c..9f1b2779 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -187,6 +187,7 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b) %token T_SOLID "Solid" %token T_UNIT_PX "pixels" +%token T_UNIT_MM "mm" %token T_UNIT_EM "em" %token T_UNIT_CH "ch" %token T_UNIT_PERCENT "%" @@ -738,9 +739,10 @@ t_property_distance /** distance unit. px, em, % */ t_property_unit : T_UNIT_PX { $$ = ROFI_PU_PX; } +| T_UNIT_MM { $$ = ROFI_PU_MM; } | T_UNIT_EM { $$ = ROFI_PU_EM; } | T_UNIT_CH { $$ = ROFI_PU_CH; } -| T_PERCENT { $$ = ROFI_PU_PERCENT; } +| T_PERCENT { $$ = ROFI_PU_PERCENT; } ; /****** * Line style |