Skip to content

Highlight tensor types and literals in the tensor reference - #4941

Merged
sebastiannberg merged 1 commit into
masterfrom
johsol/highlight-tensor-literals
Oct 9, 2026
Merged

sebastiannberg merged 1 commit into
masterfrom
johsol/highlight-tensor-literals

Conversation

@johansolbakken

Copy link
Copy Markdown
Contributor

Tags 20 tensor type and tensor literal examples in en/reference/ranking/tensor.html as vespa-ranking-expression, including the literal, dense and mixed forms. The blocks that used {% raw %} keep it inside the highlight tag.

Left plain:

  • The grammar of the literal form, which is notation and not a tensor.
  • The two hex string examples (0B22038405FF and the tensor<int8> one), where the lexer would color some hex strings as numbers and others not.

🤖 Generated with Claude Code

Tag the tensor type and tensor literal examples in the tensor reference as
ranking expressions. The grammar of the literal form and the hex string
examples stay plain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sebastiannberg
sebastiannberg merged commit e698e06 into master Oct 9, 2026
2 checks passed
@sebastiannberg
sebastiannberg deleted the johsol/highlight-tensor-literals branch October 9, 2026 11:43
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