Skip to content

Add TOML syntax highlighting#866

Open
lucas-x86 wants to merge 1 commit into
microsoft:mainfrom
lucas-x86:add-toml-highlighting
Open

Add TOML syntax highlighting#866
lucas-x86 wants to merge 1 commit into
microsoft:mainfrom
lucas-x86:add-toml-highlighting

Conversation

@lucas-x86
Copy link
Copy Markdown

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
Author

@microsoft-github-policy-service agree

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