Skip to content

Add TOML highlighting#866

Merged
lhecker merged 3 commits into
microsoft:mainfrom
lucas-x86:add-toml-highlighting
Jul 22, 2026
Merged

Add TOML highlighting#866
lhecker merged 3 commits into
microsoft:mainfrom
lucas-x86:add-toml-highlighting

Conversation

@lucas-x86

Copy link
Copy Markdown
Contributor

Adds a TOML syntax highlighting definition (crates/lsh/definitions/toml.lsh) and a sample file under assets/highlighting-tests/. It applies to *.toml and Cargo.lock.

image

Test screenshot

image

Reproduce with cargo run -p lsh-bin -- render --input ./assets/highlighting-tests/toml.toml ./crates/lsh/definitions/

Note

  • Literal strings are scanned without escape handling, so a trailing backslash (e.g. a Windows path 'C:\dir\') still terminates the string correctly.

@lucas-x86

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@lhecker lhecker changed the title Add TOML syntax highlighting Add TOML highlighting Jul 22, 2026
@lhecker
lhecker merged commit e16e2a4 into microsoft:main Jul 22, 2026
3 checks passed
@lhecker

lhecker commented Jul 22, 2026

Copy link
Copy Markdown
Member

Thanks!

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.

2 participants