diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Colour css properties and pseudo-classes
Scintillua's css lexer tags them with names the map had no row for, so they came out as plain text.
Diffstat (limited to '')
-rw-r--r--custom/extensions/syntax-highlight.lua31
1 file changed, 17 insertions, 14 deletions
diff --git a/custom/extensions/syntax-highlight.lua b/custom/extensions/syntax-highlight.lua
index c178f25..8a1e7ab 100644
--- a/custom/extensions/syntax-highlight.lua
+++ b/custom/extensions/syntax-highlight.lua
@@ -55,20 +55,23 @@ local scintillua_dirs = {
-- tag with no row renders as plain text, which is what most themes want for
-- operators and identifiers.
local css = {
- comment = "hl-comment",
- string = "hl-string",
- regex = "hl-string",
- number = "hl-number",
- constant = "hl-number",
- keyword = "hl-keyword",
- preprocessor = "hl-keyword",
- tag = "hl-keyword",
- label = "hl-keyword",
- annotation = "hl-keyword",
- type = "hl-type",
- class = "hl-type",
- attribute = "hl-type",
- ["function"] = "hl-func",
+ comment = "hl-comment",
+ string = "hl-string",
+ regex = "hl-string",
+ number = "hl-number",
+ constant = "hl-number",
+ property = "hl-number",
+ keyword = "hl-keyword",
+ preprocessor = "hl-keyword",
+ tag = "hl-keyword",
+ label = "hl-keyword",
+ annotation = "hl-keyword",
+ type = "hl-type",
+ class = "hl-type",
+ attribute = "hl-type",
+ ["function"] = "hl-func",
+ pseudoclass = "hl-func",
+ pseudoelement = "hl-func",
}
-- Extension to lexer name fixes for the fallback path, reached only when