@tanstack/highlight
Version:
Tiny class-based syntax highlighting for documentation.
12 lines (11 loc) • 468 B
JavaScript
// Vocabulary adapted from Highlight.js 11.11.1, see NOTICE.md.
import { simpleLanguage } from '../internal/simple-language.js';
export const properties = /* @__PURE__ */ simpleLanguage({
name: "properties",
aliases: ["java-properties"],
comments: /^[ \t]*[#!][^\r\n]*/,
strings: /(?!)/,
insensitive: true,
beforeWords: [[/^[ \t]*(?:\\[^\r\n]|[^\s=:\\#!])+(?=[ \t=:])/gm, 'property'], [/(?<=[=:])[^\r\n]+/g, 'string']],
numbers: false,
});