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