Repository navigation
Highlight schema syntax templates in the reference - #4940
Merged
Merged
Conversation
Syntax templates in the schema reference write placeholders such as [name] and [type-name]. Color a bracketed placeholder as one emphasized token, so that words in it, like "type" in [type-name], are not colored as schema keywords. Tensor dimensions and tensor values in brackets are not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tag the syntax templates in the schema reference and the .model file reference as schema, and the inputs and constants examples in the schema reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sebastiannberg
approved these changes
Oct 9, 2026
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.
Highlights the syntax templates in the schema reference and the
.modelfile reference, such as_plugins/rouge_schema_placeholders.rb, colors a bracketed placeholder in schema code as one emphasized token, like the XML placeholders in_plugins/rouge_xml_placeholders.rb. Without it, words in a placeholder are colored as schema, e.g.typein[type-name]as a keyword. A placeholder starts with a letter and does not follow a name, a closing bracket or):, so tensor dimensions (x[384]) and tensor values (tensor(x[3]):[1, 2, 3]) are not affected. None of the schema blocks already highlighted on the site changes.schemas.htmlandmodel-files.htmlas schema, and theinputsandconstantsexamples inschemas.html. Links in the templates are kept.tensor(key{}])totensor(key{})in theconstantsexample.The overview of schema elements at the top of
schemas.htmland the query syntax[field-name].[component-name]:termstay plain.🤖 Generated with Claude Code