Fish shell like syntax highlighting for Zsh.
This report summarizes scanner evidence for zsh-users/zsh-syntax-highlighting, a Shell project with 23,026 GitHub stars. SynthScan examined 17,637 lines of code across 325 source files, recording 1288 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 177.5 (High pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 374 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 910 finding(s).
Which changes need focused human review? 1288 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1288 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | zsh-syntax-highlighting.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 98 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 100 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 339 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 341 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 381 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 383 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 543 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zsh-syntax-highlighting.zsh | 545 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-highlighting.zsh | 2 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-highlighting.zsh | 26 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-highlighting.zsh | 29 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-perfs.zsh | 2 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-perfs.zsh | 26 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-perfs.zsh | 29 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/generate.zsh | 2 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/generate.zsh | 26 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/generate.zsh | 29 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/tap-colorizer.zsh | 2 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/tap-colorizer.zsh | 26 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/tap-colorizer.zsh | 29 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-zprof.zsh | 2 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-zprof.zsh | 26 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test-zprof.zsh | 29 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/regexp-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/regexp-highlighter.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/regexp-highlighter.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/word-boundary.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/word-boundary.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/word-boundary.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/subexpression.zsh | 2 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/subexpression.zsh | 26 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/subexpression.zsh | 29 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/complex.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/complex.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/regexp/test-data/complex.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/cursor/cursor-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/cursor/cursor-highlighter.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/cursor/cursor-highlighter.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/line/line-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/line/line-highlighter.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/line/line-highlighter.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/root/root-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/root/root-highlighter.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/root/root-highlighter.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/pattern/pattern-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/pattern/pattern-highlighter.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/pattern/pattern-highlighter.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/pattern/test-data/rm-rf.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/pattern/test-data/rm-rf.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/pattern/test-data/rm-rf.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/brackets-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/brackets-highlighter.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/brackets-highlighter.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/test-data/quoted-patentheses.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/test-data/quoted-patentheses.zsh | 25 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/test-data/quoted-patentheses.zsh | 28 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | highlighters/brackets/test-data/only-error.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| 850 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | zsh-syntax-highlighting.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | zsh-syntax-highlighting.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | zsh-syntax-highlighting.zsh | 141 | # zsh 5.9 or later | COMMENT |
| LOW | zsh-syntax-highlighting.zsh | 301 | # region, paste, isearch, or suffix | COMMENT |
| LOW | zsh-syntax-highlighting.zsh | 381 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | zsh-syntax-highlighting.zsh | 401 | # 2. If zsh has the memo= feature, which is required for interoperability reasons. | COMMENT |
| LOW | tests/test-highlighting.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | tests/test-perfs.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | tests/test-perfs.zsh | 21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | COMMENT |
| LOW | tests/generate.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | tests/generate.zsh | 21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | COMMENT |
| LOW | tests/tap-colorizer.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | tests/tap-colorizer.zsh | 21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | COMMENT |
| LOW | tests/test-zprof.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | tests/test-zprof.zsh | 21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | COMMENT |
| LOW | highlighters/regexp/regexp-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/regexp/regexp-highlighter.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/regexp/test-data/word-boundary.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/regexp/test-data/subexpression.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | highlighters/regexp/test-data/subexpression.zsh | 21 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | COMMENT |
| LOW | highlighters/regexp/test-data/complex.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/cursor/cursor-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/cursor/cursor-highlighter.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/line/line-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/line/line-highlighter.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/root/root-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/root/root-highlighter.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/pattern/pattern-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/pattern/pattern-highlighter.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/pattern/test-data/rm-rf.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/brackets-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/quoted-patentheses.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/quoted-patentheses.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/brackets/test-data/only-error.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/only-error.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/brackets/test-data/loop-styles.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/nested-parentheses.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | …lighters/brackets/test-data/cursor-matchingbracket.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | …ghlighters/brackets/test-data/mismatch-patentheses.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/simple-parentheses.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | …ghlighters/brackets/test-data/unclosed-patentheses.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | …hlighters/brackets/test-data/unclosed-patentheses2.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/near-quotes.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | …ckets/test-data/cursor-matchingbracket-line-finish.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/empty-styles.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/brackets/test-data/empty-styles.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 201 | # types. | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 321 | typeset -a ZSH_HIGHLIGHT_TOKENS_CONTROL_FLOW | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 501 | # $REPLY: $buf[REPLY] is the last character parsed. | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 521 | # Pattern for parameter names | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 541 | # Only valid when :start: is present | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 561 | # will DTRT regardless of how many elements or repetitions $x has. | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 661 | # The first, outer parenthesis | COMMENT |
| LOW | highlighters/main/test-data/noglob4.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| LOW | highlighters/main/test-data/path_prefix2.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/main/test-data/vanilla-newline.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/main/test-data/backslash.zsh | 1 | # ------------------------------------------------------------------------------------------------- | COMMENT |
| LOW | highlighters/main/test-data/backslash.zsh | 21 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | COMMENT |
| LOW | …hlighters/main/test-data/arithmetic-multiplication.zsh | 1 | #!/usr/bin/env zsh | COMMENT |
| 305 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test-highlighting.zsh | 154 | : ${CURSOR=$#BUFFER} ${PENDING=0} ${WIDGET=z-sy-h-test-harness-test-widget} | CODE |
| MEDIUM | tests/test-highlighting.zsh | 251 | # Run a single test file. The exit status is 1 if the test harness had | COMMENT |
| MEDIUM⚡ | highlighters/main/test-data/precommand-type1.zsh | 38 | # diagnose a message on stdout, and the harness will detect a failure. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | zsh-syntax-highlighting.zsh | 117 | # This function is supposed to be called whenever the ZLE state changes. | COMMENT |
| MEDIUM | highlighters/main/main-highlighter.zsh | 1453 | # This function is currently never called for the command word, so $2 is hard-coded as 0. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | changelog.md | 512 | - Command word after array assignment, `a=(lorem ipsum) pwd`. | CODE |
| LOW⚡ | highlighters/main/test-data/assign-append.zsh | 30 | BUFFER='a+=(lorem ipsum)' | CODE |
| LOW⚡ | highlighters/main/test-data/alias-assignment1.zsh | 32 | aliases[x=y]='lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | highlighters/main/test-data/alias-assignment1.zsh | 32 | aliases[x=y]='lorem ipsum dolor sit amet' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | highlighters/main/main-highlighter.zsh | 1182 | # Check if $arg is variable assignment | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 1203 | # Check if $1 is a path. | COMMENT |
| LOW | highlighters/main/main-highlighter.zsh | 1235 | # Check if this is a blacklisted path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test-highlighting.zsh | 134 | # WARNING: The remainder of this anonymous function will run with the test's options in effect | COMMENT |