summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-yang.min.js
blob: ffcc07de461c2e20c448682b1a69ff92d67c9cfc (plain)
1
2
3
4
5
6
7
8
9
Prism.languages.yang = {
  comment: /\/\*[\s\S]*?\*\/|\/\/.*/,
  string: { pattern: /"(?:[^\\"]|\\.)*"|'[^']*'/, greedy: !0 },
  keyword: { pattern: /(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i, lookbehind: !0 },
  namespace: { pattern: /(\s)[a-z_][\w.-]*(?=:)/i, lookbehind: !0 },
  boolean: /\b(?:false|true)\b/,
  operator: /\+/,
  punctuation: /[{};:]/,
};