Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1341)

Side by Side Diff: lib/src/prism/components/prism-j.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/prism/components/prism-ini.min.js ('k') | lib/src/prism/components/prism-j.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-ini.min.js ('k') | lib/src/prism/components/prism-j.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698