Skip to content

Feat/112 ls colors parser - #218

Merged
catgoose merged 2 commits into
masterfrom
feat/112-ls_colors_parser
Jul 14, 2026
Merged

Feat/112 ls colors parser#218
catgoose merged 2 commits into
masterfrom
feat/112-ls_colors_parser

Conversation

@catgoose

Copy link
Copy Markdown
Owner

No description provided.

catgoose added 2 commits May 30, 2026 05:34
Adds a built-in ls_colors parser that recognizes LS_COLORS / SGR
color-producing snippets such as =38;5;NNN, =48;5;NNN, =38;2;R;G;B,
and =48;2;R;G;B (leading style codes like 01; are skipped). The
parser is byte-dispatched on '=' and disabled by default.

Exposes the xterm 256-color palette so custom parsers and downstream
code do not need to duplicate it:
  - colorizer.parser.xterm.lookup_256(idx) -> rgb_hex|nil
  - colorizer.parser.xterm.get_palette()   -> fresh 256-entry copy

Wires the parser through registry, config annotations, matcher flags
and cache key, README, vimdoc, and adds focused parser/registry tests.
@catgoose
catgoose merged commit 72a05f6 into master Jul 14, 2026
2 checks passed
@catgoose
catgoose deleted the feat/112-ls_colors_parser branch July 14, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant