mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
cc5bc58856
commit
257665e473
@ -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_-]+', 'id_selector', 'id-selector'),
|
||||||
(r'@[a-zA-Z0-9_-]+', 'preproc', 'atrule'),
|
(r'@[a-zA-Z0-9_-]+', 'preproc', 'atrule'),
|
||||||
(r'[a-zA-Z0-9_-]+', 'tag', 'tag'),
|
(r'[a-zA-Z0-9_-]+', 'tag', 'tag'),
|
||||||
(r'[~\^\*!%&\[\]\(\)<>\|+=@:;,./?-]', 'operator', 'operator'),
|
(r'[\$~\^\*!%&\[\]\(\)<>\|+=@:;,./?-]', 'operator', 'operator'),
|
||||||
]]
|
]]
|
||||||
|
|
||||||
URL_TOKEN = 'url'
|
URL_TOKEN = 'url'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user