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

Side by Side Diff: lib/src/prism/components/prism-nasm.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.nasm = { 1 Prism.languages.nasm = {
2 'comment': /;.*$/m, 2 » 'comment': /;.*$/m,
3 'string': /("|'|`)(\\?.)*?\1/m, 3 » 'string': /("|'|`)(\\?.)*?\1/m,
4 'label': { 4 » 'label': {
5 pattern: /^\s*[A-Za-z\._\?\$][\w\.\?\$@~#]*:/m, 5 » » pattern: /(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,
6 alias: 'function' 6 » » lookbehind: true,
7 }, 7 » » alias: 'function'
8 'keyword': [ 8 » },
9 /\[?BITS (16|32|64)\]?/m, 9 » 'keyword': [
10 /^\s*section\s*[a-zA-Z\.]+:?/im, 10 » » /\[?BITS (16|32|64)\]?/m,
11 /(?:extern|global)[^;]*/im, 11 » » {
12 /(?:CPU|FLOAT|DEFAULT).*$/m 12 » » » pattern: /(^\s*)section\s*[a-zA-Z\.]+:?/im,
13 ], 13 » » » lookbehind: true
14 'register': { 14 » » },
15 pattern: /\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abc d][hl]|[er]?(bp|sp|si|di)|[cdefgs]s)\b/i, 15 » » /(?:extern|global)[^;\r\n]*/im,
16 alias: 'variable' 16 » » /(?:CPU|FLOAT|DEFAULT).*$/m
17 }, 17 » ],
18 'number': /(\b|-|(?=\$))(0[hx][\da-f]*\.?[\da-f]+(p[+-]?\d+)?|\d[\da-f]+[hx] |\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|\d*\.?\d+(\.? e[+-]?\d+)?[dt]?)\b/i, 18 » 'register': {
19 'operator': /[\[\]\*+\-\/%<>=&|\$!]/m 19 » » pattern: /\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abc d]x|[abcd][hl]|[er]?(bp|sp|si|di)|[cdefgs]s)\b/i,
20 » » alias: 'variable'
21 » },
22 » 'number': /(\b|-|(?=\$))(0[hx][\da-f]*\.?[\da-f]+(p[+-]?\d+)?|\d[\da-f]+ [hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|\d*\.?\d+ (\.?e[+-]?\d+)?[dt]?)\b/i,
23 » 'operator': /[\[\]*+\-\/%<>=&|$!]/
20 }; 24 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-monkey.min.js ('k') | lib/src/prism/components/prism-nasm.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698