UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

12 lines (11 loc) • 475 B
// 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 scss = /* @__PURE__ */ simpleLanguage({ name: "scss", aliases: [], comments: cComments, strings: quotedStrings, insensitive: true, beforeWords: [[/\$[\w-]+/g, 'variable'], [/@[\w-]+/g, 'meta'], stylesheetWords], });