summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-jexl.min.js
blob: 6740b7cd0df09034b534ba5f80f89bb667e251aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Prism.languages.jexl = {
  string: /(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,
  transform: {
    pattern:
      /(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,
    alias: 'function',
    lookbehind: !0,
  },
  function:
    /[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,
  number: /\b\d+(?:\.\d+)?\b|\B\.\d+\b/,
  operator: /[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,
  boolean: /\b(?:false|true)\b/,
  keyword: /\bin\b/,
  punctuation: /[{}[\](),.]/,
};
="w"> return undefined; } }, set(key: string, value: string) { try { const serialItem = JSON.stringify(value); localStorage.setItem(key, serialItem); } catch (e) { console.log(e); } }, remove(key: string) { localStorage.removeItem(key); }, clear() { localStorage.clear(); }, };