summaryrefslogtreecommitdiffstats
path: root/lexer
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-05-22 09:24:05 +0200
committerDave Davenport <qball@gmpclient.org>2017-05-22 09:24:05 +0200
commitdca5caaa4778f2e7973372fa33483f724610f2dc (patch)
tree01b76c921c24dc57958dbda57095b28d2245f5f4 /lexer
parent8616e4e8c6782b642219aea60ea0be79b1afb42a (diff)
[Theme] Add small caps options (not working?)
Diffstat (limited to 'lexer')
-rw-r--r--lexer/theme-lexer.l2
-rw-r--r--lexer/theme-parser.y2
2 files changed, 4 insertions, 0 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l
index cf85a0fb..80ee6584 100644
--- a/lexer/theme-lexer.l
+++ b/lexer/theme-lexer.l
@@ -189,6 +189,7 @@ BOLD "bold"
UNDERLINE "underline"
ITALIC "italic"
STRIKETHROUGH "strikethrough"
+SMALLCAPS "small caps"
/* ANGLES */
@@ -461,6 +462,7 @@ if ( queue == NULL ){
<PROPERTIES>{ITALIC} { return T_ITALIC; }
<PROPERTIES>{UNDERLINE} { return T_UNDERLINE; }
<PROPERTIES>{STRIKETHROUGH} { return T_STRIKETHROUGH; }
+<PROPERTIES>{SMALLCAPS} { return T_SMALLCAPS; }
<PROPERTIES>{ANGLE_DEG} { return T_ANGLE_DEG; }
<PROPERTIES>{ANGLE_RAD} { return T_ANGLE_RAD; }
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index e721b346..d66b7cc4 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -174,6 +174,7 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b)
%token T_ITALIC "Italic"
%token T_UNDERLINE "Underline"
%token T_STRIKETHROUGH "Strikethrough"
+%token T_SMALLCAPS "Small CAPS"
%token T_DASH "Dash"
%token T_SOLID "Solid"
@@ -400,6 +401,7 @@ t_property_highlight_style
| T_UNDERLINE { $$ = HL_UNDERLINE; }
| T_STRIKETHROUGH { $$ = HL_STRIKETHROUGH; }
| T_ITALIC { $$ = HL_ITALIC; }
+| T_SMALLCAPS { $$ = HL_SMALL_CAPS; }
;
/** Distance. */