OLD | NEW |
1 Prism.languages.java = Prism.languages.extend('clike', { | 1 Prism.languages.java = Prism.languages.extend('clike', { |
2 'keyword': /\b(abstract|continue|for|new|switch|assert|default|goto|pack
age|synchronized|boolean|do|if|private|this|break|double|implements|protected|th
row|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|e
xtends|int|short|try|char|final|interface|static|void|class|finally|long|strictf
p|volatile|const|float|native|super|while)\b/, | 2 'keyword': /\b(abstract|continue|for|new|switch|assert|default|goto|pack
age|synchronized|boolean|do|if|private|this|break|double|implements|protected|th
row|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|e
xtends|int|short|try|char|final|interface|static|void|class|finally|long|strictf
p|volatile|const|float|native|super|while)\b/, |
3 » 'number': /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+[e]?[\d]*
[df]\b|\b\d*\.?\d+\b/i, | 3 » 'number': /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?
\d+)?[df]?\b/i, |
4 'operator': { | 4 'operator': { |
5 » » pattern: /(^|[^\.])(?:\+=|\+\+?|-=|--?|!=?|<{1,2}=?|>{1,3}=?|==?
|&=|&&?|\|=|\|\|?|\?|\*=?|\/=?|%=?|\^=?|:|~)/m, | 5 » » pattern: /(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?
|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m, |
6 lookbehind: true | 6 lookbehind: true |
7 } | 7 } |
8 }); | 8 }); |
OLD | NEW |