main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
740 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = jexl
|
---|
| 4 | jexl.displayName = 'jexl'
|
---|
| 5 | jexl.aliases = []
|
---|
| 6 | function jexl(Prism) {
|
---|
| 7 | Prism.languages.jexl = {
|
---|
| 8 | string: /(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,
|
---|
| 9 | transform: {
|
---|
| 10 | pattern:
|
---|
| 11 | /(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,
|
---|
| 12 | alias: 'function',
|
---|
| 13 | lookbehind: true
|
---|
| 14 | },
|
---|
| 15 | function:
|
---|
| 16 | /[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,
|
---|
| 17 | number: /\b\d+(?:\.\d+)?\b|\B\.\d+\b/,
|
---|
| 18 | operator: /[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,
|
---|
| 19 | boolean: /\b(?:false|true)\b/,
|
---|
| 20 | keyword: /\bin\b/,
|
---|
| 21 | punctuation: /[{}[\](),.]/
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.