Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
21 lines
492 B
Plaintext
21 lines
492 B
Plaintext
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': /[{};:]/
|
|
};
|