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

Side by Side Diff: lib/src/prism/components/prism-smalltalk.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
OLDNEW
1 Prism.languages.smalltalk = { 1 Prism.languages.smalltalk = {
2 'comment': /"(?:""|[^"])+"/, 2 'comment': /"(?:""|[^"])+"/,
3 'string': /'(?:''|[^'])+'/, 3 'string': /'(?:''|[^'])+'/,
4 'symbol': /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i, 4 'symbol': /#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,
5 'block-arguments': { 5 'block-arguments': {
6 » » pattern: /(\[\s*)(?=:)[^\[|]+?\|/, 6 » » pattern: /(\[\s*):[^\[|]*?\|/,
7 lookbehind: true, 7 lookbehind: true,
8 inside: { 8 inside: {
9 'variable': /:[\da-z]+/i, 9 'variable': /:[\da-z]+/i,
10 'punctuation': /\|/ 10 'punctuation': /\|/
11 } 11 }
12 }, 12 },
13 'temporary-variables': { 13 'temporary-variables': {
14 pattern: /\|[^|]+\|/, 14 pattern: /\|[^|]+\|/,
15 inside: { 15 inside: {
16 'variable': /[\da-z]+/i, 16 'variable': /[\da-z]+/i,
17 'punctuation': /\|/ 17 'punctuation': /\|/
18 } 18 }
19 }, 19 },
20 'keyword': /\b(?:nil|true|false|self|super|new)\b/, 20 'keyword': /\b(?:nil|true|false|self|super|new)\b/,
21 'character': { 21 'character': {
22 pattern: /\$./, 22 pattern: /\$./,
23 alias: 'string' 23 alias: 'string'
24 }, 24 },
25 'number': [ 25 'number': [
26 /\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/, 26 /\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,
27 /(?:\B-|\b)\d+(?:\.\d+)?(?:e-?\d+)?/ 27 /(?:\B-|\b)\d+(?:\.\d+)?(?:e-?\d+)?/
28 ], 28 ],
29 » 'operator': /[:=~<>]=|~~|\/\/|\\\\|>>|[!^=<>+\-*\/&|,@]/, 29 » 'operator': /[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,
30 'punctuation': /[.;:?\[\](){}]/ 30 'punctuation': /[.;:?\[\](){}]/
31 }; 31 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-scss.min.js ('k') | lib/src/prism/components/prism-smalltalk.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698