prism-jexl.js 596 B

1234567891011121314
  1. Prism.languages.jexl = {
  2. 'string': /(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,
  3. 'transform': {
  4. pattern: /(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,
  5. alias: 'function',
  6. lookbehind: true
  7. },
  8. 'function': /[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,
  9. 'number': /\b\d+(?:\.\d+)?\b|\B\.\d+\b/,
  10. 'operator': /[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,
  11. 'boolean': /\b(?:false|true)\b/,
  12. 'keyword': /\bin\b/,
  13. 'punctuation': /[{}[\](),.]/,
  14. };