Edit book: Fix syntax highlighting not recognizing ends-with selectors. Fixes #1905806 [[Editor] CSS selector "ends with" not recognized](https://bugs.launchpad.net/calibre/+bug/1905806)

This commit is contained in:
Kovid Goyal 2020-11-27 08:15:25 +05:30
parent cc5bc58856
commit 257665e473
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -22,7 +22,7 @@ sheet_tokens = [(re.compile(k), v, n) for k, v, n in [
(r'\#[a-zA-Z0-9_-]+', 'id_selector', 'id-selector'),
(r'@[a-zA-Z0-9_-]+', 'preproc', 'atrule'),
(r'[a-zA-Z0-9_-]+', 'tag', 'tag'),
(r'[~\^\*!%&\[\]\(\)<>\|+=@:;,./?-]', 'operator', 'operator'),
(r'[\$~\^\*!%&\[\]\(\)<>\|+=@:;,./?-]', 'operator', 'operator'),
]]
URL_TOKEN = 'url'