Skip to content

Commit 14a302e

Browse files
authored
fix(chromaterm): replace alternation in lookbehinds for PCRE2 compat (#18)
PCRE2 requires fixed-length lookbehinds. The file path regex used `(?<=[\s(]|^)` (variable-length alternation) and the git hash regex used `(?<=commit |merge |...)` (different-length alternatives). Replaced with non-capturing groups containing individual fixed-length lookbehinds that satisfy the PCRE2 constraint. Closes #15 Co-authored-by: AnExiledDev <AnExiledDev@users.noreply.github.com>
1 parent 94d42eb commit 14a302e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.devcontainer/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#### Plugin Marketplace
88
- **`marketplace.json` schema fix** — changed all 11 plugin `source` fields from bare names (e.g., `"codeforge-lsp"`) to relative paths (`"./plugins/codeforge-lsp"`) so `claude plugin marketplace add` passes schema validation and all plugins register correctly
99

10+
#### ChromaTerm
11+
- **Regex lookbehinds** — replaced alternation inside lookbehinds (`(?<=[\s(]|^)` and `(?<=commit |merge |...)`) with non-capturing groups containing individual lookbehinds (`(?:(?<=[\s(])|^)` and `(?:(?<=commit )|(?<=merge )|...)`) for PCRE2 compatibility
12+
1013
### Removed
1114

1215
#### VS Code Extensions

.devcontainer/features/chromaterm/chromaterm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rules:
1818
# File paths with optional line numbers (e.g., src/main.py:42)
1919
# Covers common extensions for languages used in development
2020
- description: File paths with line numbers
21-
regex: '(?<=[\s(]|^)([a-zA-Z0-9_./-]+\.(py|ts|tsx|js|jsx|md|json|yml|yaml|toml|sh|rs|go|sql|css|html|svelte))(:(\d+))?'
21+
regex: '(?:(?<=[\s(])|^)([a-zA-Z0-9_./-]+\.(py|ts|tsx|js|jsx|md|json|yml|yaml|toml|sh|rs|go|sql|css|html|svelte))(:(\d+))?'
2222
color:
2323
1: f.file_purple underline
2424
4: f.line_gray
@@ -31,5 +31,5 @@ rules:
3131

3232
# Git short commit hashes (7-12 hex chars)
3333
- description: Git commit hashes
34-
regex: '(?<=commit |merge |pick |revert |fixup )[0-9a-f]{7,40}'
34+
regex: '(?:(?<=commit )|(?<=merge )|(?<=pick )|(?<=revert )|(?<=fixup ))[0-9a-f]{7,40}'
3535
color: f.hash_yellow

0 commit comments

Comments
 (0)