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:
998 bytes
|
Line | |
---|
1 | Prism.languages.j = {
|
---|
2 | 'comment': {
|
---|
3 | pattern: /\bNB\..*/,
|
---|
4 | greedy: true
|
---|
5 | },
|
---|
6 | 'string': {
|
---|
7 | pattern: /'(?:''|[^'\r\n])*'/,
|
---|
8 | greedy: true
|
---|
9 | },
|
---|
10 | 'keyword': /\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,
|
---|
11 | 'verb': {
|
---|
12 | // Negative look-ahead prevents bad highlighting
|
---|
13 | // of ^: ;. =. =: !. !:
|
---|
14 | pattern: /(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,
|
---|
15 | alias: 'keyword'
|
---|
16 | },
|
---|
17 | 'number': /\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,
|
---|
18 | 'adverb': {
|
---|
19 | pattern: /[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,
|
---|
20 | alias: 'builtin'
|
---|
21 | },
|
---|
22 | 'operator': /[=a][.:]|_\./,
|
---|
23 | 'conjunction': {
|
---|
24 | pattern: /&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,
|
---|
25 | alias: 'variable'
|
---|
26 | },
|
---|
27 | 'punctuation': /[()]/
|
---|
28 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.