OLD | NEW |
1 Prism.languages.julia= { | 1 Prism.languages.julia= { |
2 'comment': { | 2 'comment': { |
3 » » pattern: /(^|[^\\])#.*?(\r?\n|$)/, | 3 » » pattern: /(^|[^\\])#.*/, |
4 lookbehind: true | 4 lookbehind: true |
5 }, | 5 }, |
6 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/, | 6 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/, |
7 'keyword' : /\b(abstract|baremodule|begin|bitstype|break|catch|ccall|con
st|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|i
mport|importall|let|local|macro|module|print|println|quote|return|try|type|typea
lias|using|while)\b/, | 7 'keyword' : /\b(abstract|baremodule|begin|bitstype|break|catch|ccall|con
st|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|i
mport|importall|let|local|macro|module|print|println|quote|return|try|type|typea
lias|using|while)\b/, |
8 'boolean' : /\b(true|false)\b/, | 8 'boolean' : /\b(true|false)\b/, |
9 » 'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i, | 9 » 'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:[efp][+-]?\d+)?j?\b/
i, |
10 » 'operator' : /[-+]{1,2}|=?<|=?>|!|={1,2}|&{1,2}|\|?\||\?|\*|\/|~|\^|%|\b
(or|and|not)\b/, | 10 » 'operator': /\+=?|-=?|\*=?|\/[\/=]?|\\=?|\^=?|%=?|÷=?|!=?=?|&=?|\|[=>]?|
\$=?|<(?:<=?|[=:])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥]/, |
11 'punctuation' : /[{}[\];(),.:]/ | 11 'punctuation' : /[{}[\];(),.:]/ |
12 }; | 12 }; |
OLD | NEW |