aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/generate.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-30 10:39:52 -0400
committerCraig Jennings <c@cjennings.net>2026-06-30 10:39:52 -0400
commit3ec5eef7025d2bdbb9efbb2dc1026d65ca3a8590 (patch)
treeed25021c7f7b265b51dccd73095cef361459abe8 /scripts/theme-studio/generate.py
parentb7e4c817dbe278831015b8b406d60a4f42ae5160 (diff)
downloaddotemacs-3ec5eef7025d2bdbb9efbb2dc1026d65ca3a8590.tar.gz
dotemacs-3ec5eef7025d2bdbb9efbb2dc1026d65ca3a8590.zip
feat(theme-studio): surface the five remaining font-lock faces
Add the font-lock faces the syntax tier didn't cover (warning, doc-markup, negation-char, and the two regexp-grouping faces) as their own editable categories: warn, dmark, neg, rxgb, rxgc. Each maps 1:1 to its face, seeds from the stock defaults, and is exercised in the code-sample preview via a TODO comment, a docstring substitution, a string regexp, and a C negation. Injected only the five new faces into the default-faces snapshot rather than regenerating it wholesale. A full recapture pulls in unrelated package-inventory drift.
Diffstat (limited to 'scripts/theme-studio/generate.py')
-rw-r--r--scripts/theme-studio/generate.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/theme-studio/generate.py b/scripts/theme-studio/generate.py
index e50d102de..dc6d0a8ef 100644
--- a/scripts/theme-studio/generate.py
+++ b/scripts/theme-studio/generate.py
@@ -312,9 +312,12 @@ CATS=[["bg","bg (ground)","Aa Bb 123"],["p","fg","other / whitespace"],["kw","ke
["ty","type / class","int str Order Queue"],["prop","property / field","id name items"],
["con","constant","None nil NULL true"],["num","number","8080 100 -1"],
["str","string",'"dupre" "fmt"'],["esc","escape","\\n \\t"],["re","regexp","/^#[0-9a-f]+/"],
- ["doc","docstring",'"""..."""'],["cm","comment","# reject nil"],["cmd","comment delim","# // ;;"],
+ ["rxgb","regexp backslash","\\\\("],["rxgc","regexp construct","\\( \\)"],
+ ["doc","docstring",'"""..."""'],["dmark","doc mark","\\[cmd] `sym'"],
+ ["cm","comment","# reject nil"],["cmd","comment delim","# // ;;"],
["var","variable / use","value key self"],["op","operator",": = -> =="],
- ["punc","punctuation","{ } ( ) ;"]]
+ ["neg","negation char","!"],["punc","punctuation","{ } ( ) ;"],
+ ["warn","warn","TODO FIXME"]]
UI_FACES=[["cursor","cursor","Aa|"],["region","region (selection)","selected text"],
["hl-line","hl-line (current line)","current line"],["highlight","highlight","hover"],
["mode-line","mode-line","status active"],