You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
596 B
14 lines
596 B
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: true |
|
}, |
|
'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': /[{}[\](),.]/, |
|
};
|
|
|