summaryrefslogtreecommitdiff
path: root/pango/pango-markup.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-06-26 14:49:51 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-06-28 00:05:09 -0400
commitc07f28d3f83678c4ad75086beca181a145ecf07d (patch)
tree7c94d3831e09f5efc7c2929560825092635e521e /pango/pango-markup.c
parentd1a5fbff26079ab3271697a806a0aebaa5a75f03 (diff)
downloadpango-c07f28d3f83678c4ad75086beca181a145ecf07d.tar.gz
markup: Separate out all cases
No point in having a few attributes handled in the default case. Just split them all by the first char.
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r--pango/pango-markup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index 9721595d..eb262980 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1229,11 +1229,16 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
CHECK_ATTRIBUTE (underline);
CHECK_ATTRIBUTE (underline_color);
break;
- default:
+ case 'r':
CHECK_ATTRIBUTE (rise);
+ break;
+ case 'v':
CHECK_ATTRIBUTE (variant);
+ break;
+ case 'w':
CHECK_ATTRIBUTE (weight);
break;
+ default:;
}
if (!found)