diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-09-05 13:52:21 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-09-05 13:52:21 +0200 |
commit | ba296f921087453ca36c45af4be4e2ff3d6007a5 (patch) | |
tree | 9c67f8f2c0973f28fb469bba13ea805fee29bf25 /lexer/theme-lexer.l | |
parent | 6dae152e3179f83d69c63850745e6638a280222e (diff) |
Add `ch` as size unit.
Diffstat (limited to 'lexer/theme-lexer.l')
-rw-r--r-- | lexer/theme-lexer.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index bf53b0f4..57ca2064 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -170,6 +170,7 @@ PNNUMBER [-+]?[[:digit:]]+ REAL [-+]?[[:digit:]]+(\.[[:digit:]]+)? PX (px) EM (em) +CH (ch) PERCENT (\%) ASTERIX \* @@ -411,6 +412,7 @@ if ( queue == NULL ){ } <PROPERTIES>{EM} { return T_UNIT_EM; } +<PROPERTIES>{CH} { return T_UNIT_CH; } <PROPERTIES>{PX} { return T_UNIT_PX; } <PROPERTIES>{PERCENT} { return T_PERCENT; } <PROPERTIES>{LS_SOLID} { return T_SOLID; } |