@tanstack/highlight
Version:
Tiny class-based syntax highlighting for documentation.
12 lines (11 loc) • 474 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: [[/@[\w-]+/g, 'variable'], [/@[\w-]+/g, 'meta'], stylesheetWords],
});