From cdc1af5b7d146b63f85ace0c748260d81f415035 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 22 Dec 2013 17:23:15 +0530 Subject: [PATCH] Highlight all special spaces/hyphens --- src/calibre/gui2/tweak_book/editor/syntax/html.py | 4 ++-- src/calibre/gui2/tweak_book/editor/themes.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/tweak_book/editor/syntax/html.py b/src/calibre/gui2/tweak_book/editor/syntax/html.py index 39bca4e52e..e9e1ed3514 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/html.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/html.py @@ -28,7 +28,7 @@ attribute_name_pat = re.compile(r'''[^%s"'/><=]+''' % space_chars) self_closing_pat = re.compile(r'/\s*>') unquoted_val_pat = re.compile(r'''[^%s'"=<>`]+''' % space_chars) cdata_close_pats = {x:re.compile(r'