OLD | NEW |
(Empty) | |
| 1 Prism.languages.qore = Prism.languages.extend('clike', { |
| 2 'comment': { |
| 3 pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|(?:\/\/|#).*)/, |
| 4 lookbehind: true |
| 5 }, |
| 6 // Overridden to allow unescaped multi-line strings |
| 7 'string': /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\])*\1/, |
| 8 'variable': /\$(?!\d)\w+\b/, |
| 9 'keyword': /\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case
|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|f
inal|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|in
terface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow
|return|short|soft(?:int|float|number|bool|string|date|list)|static|strictfp|str
ing|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|
while)\b/, |
| 10 'number': /\b(?:0b[01]+|0x[\da-f]*\.?[\da-fp\-]+|\d*\.?\d+e?\d*[df]|\d*\
.?\d+)\b/i, |
| 11 'boolean': /\b(?:true|false)\b/i, |
| 12 'operator': { |
| 13 pattern: /(^|[^\.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>
?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/, |
| 14 lookbehind: true |
| 15 }, |
| 16 'function': /\$?\b(?!\d)\w+(?=\()/ |
| 17 }); |
OLD | NEW |