-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathccze.conf
More file actions
79 lines (67 loc) · 3.56 KB
/
ccze.conf
File metadata and controls
79 lines (67 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# ccze SUPER-CONFIG v4 - High Contrast & Structural Priority
# Processed in order; first match wins per character span.
# ---------- [0] SECURITY & AUDIT (Critical Red) ----------
color BRIGHT_RED (?i)\b(password|passwd|secret|token|api_key|apikey|auth|private_key|token_id)\b
color BRIGHT_YELLOW \b(sha1|sha256|md5):[a-fA-F0-9]+\b
# ---------- [1] STRUCTURAL ELEMENTS (Priority Matching) ----------
# JSON Keys (Improved for package.json: matches everything in quotes followed by a colon)
# Note: Using [^"] instead of complex classes to avoid loader/PCRE issues
color BRIGHT_CYAN "([^"\\]|\\.)*"\s*(?=:)
# INI/ENV Keys (Word before =)
color BRIGHT_CYAN \b[A-Z0-9_-]+\b(?=\s*=)
# HTML/XML Tags & Directives
color BRIGHT_CYAN (<\?php|\?>|<%@|<%|%>|<[^>]+>)
# HTML Attribute names (word before =)
color BRIGHT_CYAN \b[a-zA-Z0-9:-]+\b(?=\s*=(?!>))
# ---------- [2] CODE STRUCTURE (IDE Logic) ----------
# Class names / Decorators
color BRIGHT_BLUE \b(?:class|new)\s+\K[A-Z][a-zA-Z0-9_$]*
color BRIGHT_BLUE @[a-zA-Z_$][a-zA-Z0-9_$]*\b
# Function calls
color BRIGHT_GREEN \b[a-zA-Z_$][a-zA-Z0-9_$]*(?=\s*\()
# Method access
color CYAN (?:\.|->|::)\K[a-zA-Z_$][a-zA-Z0-9_$]*
# Keywords
color BRIGHT_MAGENTA \b(function|var|let|const|return|if|else|for|while|switch|case|break|try|catch|finally|throw|new|this|class|extends|import|export|from|default|async|await|echo|print|die|exit|isset|unset|empty|include|require|interface|namespace|use|public|protected|private|static|abstract|final|true|false|null|undefined)\b
# ---------- [3] STRINGS & COMMENTS (Neutral/Muted) ----------
# Comments are dimmed grey
color BRIGHT_BLACK (//.*|#.*|/\*[\s\S]*?\*/|<!--[\s\S]*?-->)
# Strings are clean White
color WHITE "([^"\\]|\\.)*"
color WHITE '([^'\\]|\\.)*'
color WHITE `([^`\\]|\\.)*`
# ---------- [4] SOURCE CONTROL (Git/Diffs) ----------
color BRIGHT_GREEN ^\+.*
color BRIGHT_RED ^-.*
color BRIGHT_CYAN ^@@.*@@
# ---------- [5] LOG LEVELS (Yellow reserved for CAUTION) ----------
color BRIGHT_RED \b(?i)(ERROR|FATAL|SEVERE|CRITICAL|FAIL|FAILED)\b
color BRIGHT_YELLOW \b(?i)(WARNING|WARN|NOTICE|CAUTION|ATTENTION)\b
color BRIGHT_GREEN \b(?i)(INFO|SUCCESS|OK)\b
color BRIGHT_CYAN \b(?i)(DEBUG|TRACE|FINE|FINER|FINEST)\b
# ---------- [6] TIMESTAMPS & COMPONENTS ----------
color BRIGHT_BLACK \b\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}(,\d{3})?\b
color BRIGHT_BLACK \b(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+\d{1,2},\s+\d{4}\s+\d{1,2}:\d{2}:\d{2}\s+(AM|PM)\b
color BRIGHT_BLUE \b(CBS|TI|Lock|Winlogon|TiWorker|CSI|DPX)\b
# ---------- [7] NETWORK & INFRA ----------
color BRIGHT_CYAN \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
color BRIGHT_MAGENTA \b(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)\b
color BRIGHT_WHITE \b(200|201|202|204|301|302|304|400|401|403|404|500|502|503|504)\b
color MAGENTA \b[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}\b
color CYAN \b([a-zA-Z]:\\|/)[^\s\n:]+\b
color BRIGHT_MAGENTA (=>|\+\+|--|&&|\|\||[=!]==?)
# ---------- [8] SHELL & SCRIPTING ----------
# PowerShell Cmdlets
color BRIGHT_GREEN \b[A-Z][a-z]+-[A-Z][a-z0-9]+\b
# CLI Parameters
color BRIGHT_WHITE \s\K(-{1,2}[a-zA-Z0-9-]+)\b
# Bash Variables
color BRIGHT_CYAN \$[a-zA-Z_][a-zA-Z0-9_]*\b
# Numbers (Standalone)
color BRIGHT_CYAN \b(0x[0-9a-fA-F]+|\d{4,})\b
# ---------- [9] PUNCTUATION & SYMBOLS ----------
# Colons/Braces in White for structure
color WHITE [:\{\}\[\],]
# ---------- [10] MARKDOWN ----------
color BRIGHT_CYAN ^#+\s.*
color BRIGHT_BLUE \[[^\]]+\]\([^\)]+\)