From 854a001daccffb78ada05c852c3ba9d451dcc54e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 23 Dec 2013 20:21:52 +0530 Subject: [PATCH] Various minor CSS highlighting snafus --- src/calibre/gui2/tweak_book/editor/syntax/css.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/calibre/gui2/tweak_book/editor/syntax/css.py b/src/calibre/gui2/tweak_book/editor/syntax/css.py index ced18d074e..b3cca45824 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/css.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/css.py @@ -29,8 +29,8 @@ content_tokens = [(re.compile(k), v, n) for k, v, n in [ r'background-image|background-position|background-repeat|' r'background|border-bottom-color|border-bottom-style|' r'border-bottom-width|border-left-color|border-left-style|' - r'border-left-width|border-right|border-right-color|' - r'border-right-style|border-right-width|border-top-color|' + r'border-left-width|border-right-color|' + r'border-right-style|border-right-width|border-right|border-top-color|' r'border-top-style|border-top-width|border-bottom|' r'border-collapse|border-left|border-width|border-color|' r'border-spacing|border-style|border-top|border|caption-side|' @@ -47,7 +47,7 @@ content_tokens = [(re.compile(k), v, n) for k, v, n in [ r'padding-left|padding-right|padding-top|padding|' r'page-break-after|page-break-before|page-break-inside|' r'pause-after|pause-before|pause|pitch|pitch-range|' - r'play-during|position|quotes|richness|right|size|' + r'play-during|position|pre-wrap|pre-line|pre|quotes|richness|right|size|' r'speak-header|speak-numeral|speak-punctuation|speak|' r'speech-rate|stress|table-layout|text-align|text-decoration|' r'text-indent|text-shadow|text-transform|top|unicode-bidi|' @@ -74,10 +74,10 @@ content_tokens = [(re.compile(k), v, n) for k, v, n in [ r'rightwards|s-resize|sans-serif|scroll|se-resize|' r'semi-condensed|semi-expanded|separate|serif|show|silent|' r'slow|slower|small-caps|small-caption|smaller|soft|solid|' - r'spell-out|square|static|status-bar|super|sw-resize|' + r'spell-out|square|static|status-bar|super|sub|sw-resize|' r'table-caption|table-cell|table-column|table-column-group|' - r'table-footer-group|table-header-group|table-row|' - r'table-row-group|text|text-bottom|text-top|thick|thin|' + r'table-footer-group|table-header-group|' + r'table-row-group|table-row|table|text|text-bottom|text-top|thick|thin|' r'transparent|ultra-condensed|ultra-expanded|underline|' r'upper-alpha|upper-latin|upper-roman|uppercase|url|' r'visible|w-resize|wait|wider|x-fast|x-high|x-large|x-loud|'