feat(languages): add Slang shader language support#2536
Merged
sinelaw merged 1 commit intoJul 1, 2026
mastersinelaw/fresh:masterfrom
claude/issue-2517-fix-fikd6jsinelaw/fresh:claude/issue-2517-fix-fikd6jCopy head branch name to clipboard
Merged
feat(languages): add Slang shader language support#2536sinelaw merged 1 commit intomastersinelaw/fresh:masterfrom claude/issue-2517-fix-fikd6jsinelaw/fresh:claude/issue-2517-fix-fikd6jCopy head branch name to clipboard
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
slang.sublime-syntaxTextMate/Sublime grammar covering Slang'stypes (scalar/vector/matrix, texture/sampler/buffer objects),
keywords, attributes/semantics, numerics, and shader intrinsics.
it is embedded in the binary.
slangentry to the defaultlanguagesmap (extension.slang,//comments) so detect_language() routes.slangfiles correctly.slangLSP server config pointing atslangd, whichships with the Slang compiler.
Covered by an e2e highlighting test plus a
hello.slangfixture; theexisting 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