Urara-Blog/node_modules/.pnpm-store/v3/files/33/9dda872cc5b0be7c8ecd9da7f7bd16696ad8aa33b8d4558bd4073fed074ab32dd0dd2cbd0e049e5b355a8ae8036ec980cbc7309813188f067ac0afae730983
2022-08-14 01:14:53 +08:00

20 lines
492 B
Text

Prism.languages.yang = {
// https://tools.ietf.org/html/rfc6020#page-34
// http://www.yang-central.org/twiki/bin/view/Main/YangExamples
'comment': /\/\*[\s\S]*?\*\/|\/\/.*/,
'string': {
pattern: /"(?:[^\\"]|\\.)*"|'[^']*'/,
greedy: true
},
'keyword': {
pattern: /(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,
lookbehind: true
},
'namespace': {
pattern: /(\s)[a-z_][\w.-]*(?=:)/i,
lookbehind: true
},
'boolean': /\b(?:false|true)\b/,
'operator': /\+/,
'punctuation': /[{};:]/
};