@tanstack/highlight
Version:
Tiny class-based syntax highlighting for documentation.
12 lines (11 loc) • 514 B
JavaScript
// Vocabulary adapted from Highlight.js 11.11.1, see NOTICE.md.
import { stylesheetWords } from '../internal/stylesheet-words.js';
import { simpleLanguage, cComments, quotedStrings } from '../internal/simple-language.js';
export const less = /* @__PURE__ */ simpleLanguage({
name: "less",
aliases: [],
comments: cComments,
strings: quotedStrings,
insensitive: true,
beforeWords: [{ className: 'variable', regex: /@[\w-]+/g }, { className: 'meta', regex: /@[\w-]+/g }, stylesheetWords],
});