prism-code-editor
Version:
Lightweight, extensible code editor component for the web using Prism
21 lines (20 loc) • 614 B
JavaScript
import { l as languages } from "../../index-DF54SWhA.js";
import { b as boolean, a as clikeComment } from "../../patterns-Jkz_nwNQ.js";
languages.yang = {
// https://tools.ietf.org/html/rfc6020#page-34
// http://www.yang-central.org/twiki/bin/view/Main/YangExamples
"comment": clikeComment,
"string": /"(?:\\.|[^\\"])*"|'[^']*'/g,
"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