UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

11 lines (10 loc) • 665 B
// Vocabulary adapted from Highlight.js 11.11.1, see NOTICE.md. import { simpleLanguage, quotedStrings } from '../internal/simple-language.js'; export const makefile = /* @__PURE__ */ simpleLanguage({ name: "makefile", aliases: ["make", "mk", "mak"], comments: /(?<!\\)#[^\r\n]*/, strings: quotedStrings, keywords: "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath", beforeWords: [[/\$\([^()]*\)|\$\{[^{}]*\}|\$[@<^?*%+|]/g, 'variable'], [/^[ \t]*[\w.-]+(?=[ \t]*[:?+!]?=)/gm, 'property'], [/^\.\w+(?=:)/gm, 'meta'], [/^[\w./%-]+(?=[ \t]*:(?!=))/gm, 'function']], });