UNPKG

prism-code-editor

Version:

Lightweight, extensible code editor component for the web using Prism

24 lines (23 loc) 653 B
import { l as languages } from "../../index-bkac8M6P.js"; import { c as clikeComment, b as boolean } from "../../patterns-BwNIoKDQ.js"; languages.yang = { // https://tools.ietf.org/html/rfc6020#page-34 // http://www.yang-central.org/twiki/bin/view/Main/YangExamples "comment": clikeComment(), "string": { pattern: /"(?:\\.|[^\\"])*"|'[^']*'/g, greedy: true }, "keyword": { pattern: /(^|[{};\n][ ]*)[a-z_][\w.-]*/i, lookbehind: true }, "namespace": { pattern: /(\s)[a-z_][\w.-]*(?=:)/i, lookbehind: true }, "boolean": boolean, "operator": /\+/, "punctuation": /[{}:;]/ }; //# sourceMappingURL=yang.js.map