main
Last change
on this file since b78c0c1 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = icon
|
---|
| 4 | icon.displayName = 'icon'
|
---|
| 5 | icon.aliases = []
|
---|
| 6 | function icon(Prism) {
|
---|
| 7 | Prism.languages.icon = {
|
---|
| 8 | comment: /#.*/,
|
---|
| 9 | string: {
|
---|
| 10 | pattern: /(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,
|
---|
| 11 | greedy: true
|
---|
| 12 | },
|
---|
| 13 | number: /\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,
|
---|
| 14 | 'builtin-keyword': {
|
---|
| 15 | pattern:
|
---|
| 16 | /&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,
|
---|
| 17 | alias: 'variable'
|
---|
| 18 | },
|
---|
| 19 | directive: {
|
---|
| 20 | pattern: /\$\w+/,
|
---|
| 21 | alias: 'builtin'
|
---|
| 22 | },
|
---|
| 23 | keyword:
|
---|
| 24 | /\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,
|
---|
| 25 | function: /\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,
|
---|
| 26 | operator:
|
---|
| 27 | /[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,
|
---|
| 28 | punctuation: /[\[\](){},;]/
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.