classHighlighter: map function(variableName) to tok-function
Build and Deploy Verso / deploy (push) Has been cancelled

All cm6 themes define .tok-function but the classHighlighter had no entry
for tags.function(tags.variableName), so function-name tokens fell back to
tok-variableName (which themes leave unstyled).  This affected Typst function
calls (#func(...)) and would affect any future language that tags function
names with t.function(t.variableName).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude
2026-06-08 08:21:16 +00:00
parent 1dcd6e24f4
commit 4f98abbc5d
@@ -23,6 +23,7 @@ export const classHighlighter = tagHighlighter([
tag: [tags.regexp, tags.escape, tags.special(tags.string)],
class: 'tok-string2',
},
{ tag: tags.function(tags.variableName), class: 'tok-function' },
{ tag: tags.variableName, class: 'tok-variableName' },
{ tag: tags.local(tags.variableName), class: 'tok-variableName tok-local' },
{