Created
February 23, 2026 16:30
-
-
Save ghutchis/74adfbd9d4ad32ec32692ccda260d067 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # highlight-styles.toml | |
| # | |
| # Each top-level section name becomes a highlight-style name. | |
| # Pattern types: | |
| # regexp – QRegularExpression syntax; capture groups mark sub-ranges | |
| # wildcard – shell-style wildcard (*, ?) | |
| # string – exact string match | |
| # All pattern types accept an optional: caseSensitive = false | |
| # | |
| # Format: either a named preset or explicit font properties. | |
| # Presets: "title" | "keyword" | "property" | "literal" | "comment" | |
| # Explicit: foreground/background as [R, G, B] (0-255), | |
| # attributes as ["bold", "italic", "underline"], | |
| # family as "serif" | "sans" | "mono" | |
| # | |
| # Note: use single-quoted literal strings for regexp patterns — backslashes | |
| # are passed through verbatim, so '\s' and '\w' work directly without | |
| # doubling (i.e. '^\s*%\w+' rather than "^\\s*%\\w+"). | |
| # ── "default" style ──────────────────────────────────────────────────────── | |
| # % control lines (%mem, %nproc, %chk, …) | |
| [[default.rules]] | |
| patterns = [ | |
| { regexp = '^\s*%\w+' }, | |
| ] | |
| [default.rules.format] | |
| preset = "keyword" | |
| # Route line (# or #P / #N / #T) | |
| [[default.rules]] | |
| patterns = [ | |
| { regexp = '^\s*#[PNTpnt]?\b' }, | |
| ] | |
| [default.rules.format] | |
| preset = "title" | |
| # Comments (! to end of line) | |
| [[default.rules]] | |
| patterns = [ | |
| { regexp = '!.*$' }, | |
| ] | |
| [default.rules.format] | |
| preset = "comment" | |
| # Common basis-set names (case-insensitive string and wildcard) | |
| [[default.rules]] | |
| patterns = [ | |
| { string = "6-31G", caseSensitive = false }, | |
| { string = "cc-pVDZ", caseSensitive = false }, | |
| { string = "cc-pVTZ", caseSensitive = false }, | |
| { wildcard = "aug-cc-pV*", caseSensitive = false }, | |
| ] | |
| [default.rules.format] | |
| preset = "property" | |
| # Numeric literals (integers, floats, scientific notation) | |
| [[default.rules]] | |
| patterns = [ | |
| { regexp = '[-+]?\b\d+\.?\d*([eE][-+]?\d+)?\b' }, | |
| ] | |
| [default.rules.format] | |
| preset = "literal" | |
| # ── "errors" style — explicit colours instead of a preset ────────────────── | |
| [[errors.rules]] | |
| patterns = [ | |
| { regexp = '^\s*Error.*$', caseSensitive = false }, | |
| { regexp = '^\s*Warning.*$', caseSensitive = false }, | |
| ] | |
| [errors.rules.format] | |
| foreground = [220, 80, 0] | |
| attributes = ["bold"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment