Repository navigation
Highlight Dang 2.5 strings - #1
Merged
Merged
Conversation
Dang 2.5 makes "..." strings interpolate with ${...}, adds verbatim
'...' and '''...''' strings, and lets """ and ''' strings carry a
language tag. Capture strings piecewise (quotes and string_content) so
interpolated expressions keep their own highlighting, mark interpolation
delimiters, label language tags, inject the tagged language into string
bodies, and ignore indentation inside triple_single_quote_string.
The tracked grammar on vito/dang main doesn't have these nodes yet;
the queries need the grammar from the open vito/dang PR.
Signed-off-by: Alex Suraci <[email protected]>
vito
added a commit
to vito/dang
that referenced
this pull request
Nov 12, 2026
The highlight queries for Dang 2.5 strings land in vito/zed-dang#1 and vito/dang.nvim#1. Point the submodules at those PRs' heads, so the embedded copy of the Zed query and the Neovim highlight tests match the grammar. Move them to the editor repos' main once those PRs merge. Signed-off-by: Alex Suraci <[email protected]>
vito
added a commit
to vito/dang
that referenced
this pull request
Nov 12, 2026
vito/zed-dang#1 and vito/dang.nvim#1 merged. Point editors/zed and editors/nvim at their merge commits instead of the PR branches. The queries are unchanged; zed-dang's merge also pins its grammar to a075f90. Signed-off-by: Alex Suraci <[email protected]>
vito
added a commit
to vito/dang
that referenced
this pull request
Nov 12, 2026
vito/zed-dang#1 and vito/dang.nvim#1 merged. Point editors/zed and editors/nvim at their merge commits instead of the PR branches. The queries are unchanged; zed-dang's merge also pins its grammar to a075f90. Signed-off-by: Alex Suraci <[email protected]>
vito
added a commit
to vito/dang
that referenced
this pull request
Nov 13, 2026
vito/zed-dang#1 and vito/dang.nvim#1 merged. Point editors/zed and editors/nvim at their merge commits instead of the PR branches. The queries are unchanged; zed-dang's merge also pins its grammar to a075f90. Signed-off-by: Alex Suraci <[email protected]>
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.
Updates the tree-sitter queries for Dang 2.5's string forms (vito/dang#300):
"..."and"""..."""now interpolate${expr}and process escapes'...'and'''...'''are verbatim: no escapes, no interpolation"""and'''strings can carry a language tag, like backtick templatesThe grammar adds the nodes
string_content,interpolation,single_quote_stringandtriple_single_quote_string. The queries:string_content), so interpolated expressions keep their own highlighting, and mark the${/}delimiters"""/'''strings and inject that language into the body, leaving${...}regions as Dang'''strings, as for"""Depends on vito/dang#300: these queries need the grammar from that PR. The plugin installs the parser from vito/dang
main(no pinned revision), so nothing needs bumping, but this shouldn't merge until that PR is on main.The same queries are mirrored in vito/dang under
editors/nvim/, where they were tested against the Neovim highlight corpus.