Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(languages): add Slang shader language support#2536

Merged
sinelaw merged 1 commit into
mastersinelaw/fresh:masterfrom
claude/issue-2517-fix-fikd6jsinelaw/fresh:claude/issue-2517-fix-fikd6jCopy head branch name to clipboard
Jul 1, 2026
Merged

feat(languages): add Slang shader language support#2536
sinelaw merged 1 commit into
mastersinelaw/fresh:masterfrom
claude/issue-2517-fix-fikd6jsinelaw/fresh:claude/issue-2517-fix-fikd6jCopy head branch name to clipboard

Conversation

@sinelaw

@sinelaw sinelaw commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Slang (https://shader-slang.com/) is an HLSL-derived shading language
used widely in real-time graphics. Requested in #2517.

Add native support following the existing syntect/embedded-grammar path
(no tree-sitter, per the grammar guidelines):

  • New slang.sublime-syntax TextMate/Sublime grammar covering Slang's
    types (scalar/vector/matrix, texture/sampler/buffer objects),
    keywords, attributes/semantics, numerics, and shader intrinsics.
  • Register the grammar in build.rs (packdump) and grammar/types.rs so
    it is embedded in the binary.
  • Add a slang entry to the default languages map (extension .slang,
    // comments) so detect_language() routes .slang files correctly.
  • Add a default slang LSP server config pointing at slangd, which
    ships with the Slang compiler.

Covered by an e2e highlighting test plus a hello.slang fixture; the
existing LSP/language consistency test guards the new config keys.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01C3pTMJvNxCFLkHg5wPCDKd

Slang (https://shader-slang.com/) is an HLSL-derived shading language
used widely in real-time graphics. Requested in #2517.

Add native support following the existing syntect/embedded-grammar path
(no tree-sitter, per the grammar guidelines):

- New `slang.sublime-syntax` TextMate/Sublime grammar covering Slang's
  types (scalar/vector/matrix, texture/sampler/buffer objects),
  keywords, attributes/semantics, numerics, and shader intrinsics.
- Register the grammar in build.rs (packdump) and grammar/types.rs so
  it is embedded in the binary.
- Add a `slang` entry to the default `languages` map (extension `.slang`,
  `//` comments) so detect_language() routes `.slang` files correctly.
- Add a default `slang` LSP server config pointing at `slangd`, which
  ships with the Slang compiler.

Covered by an e2e highlighting test plus a `hello.slang` fixture; the
existing LSP/language consistency test guards the new config keys.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C3pTMJvNxCFLkHg5wPCDKd
@sinelaw
sinelaw merged commit d83cf30 into master Jul 1, 2026
7 of 8 checks passed
@sinelaw
sinelaw deleted the claude/issue-2517-fix-fikd6j branch July 1, 2026 05:13
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.