Sha256: fd37a8624597c5431a01ae5fe67f20d5e4e5c363ac9ac6d82da0a2885c170fb6

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

Prism.languages.nasm = {
    'comment': /;.*$/m,
    'string': /("|'|`)(\\?.)*?\1/m,
    'label': {
        pattern: /^\s*[A-Za-z\._\?\$][\w\.\?\$@~#]*:/m,
        alias: 'function'
    },
    'keyword': [
        /\[?BITS (16|32|64)\]?/m,
        /^\s*section\s*[a-zA-Z\.]+:?/im,
        /(?:extern|global)[^;]*/im,
        /(?:CPU|FLOAT|DEFAULT).*$/m
    ],
    'register': {
        pattern: /\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(bp|sp|si|di)|[cdefgs]s)\b/i,
        alias: 'variable'
    },
    '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,
    'operator': /[\[\]\*+\-\/%<>=&|\$!]/m
};

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
polymer-elements-rails-1.0.1 app/assets/components/prism/components/prism-nasm.js
polymer-elements-rails-1.0.0 app/assets/components/prism/components/prism-nasm.js
polymer-elements-rails-1.0.0.pre.rc.1 app/assets/components/prism/components/prism-nasm.js
polymer-iron-rails-1.0.0.pre.rc.3 app/assets/components/prism/components/prism-nasm.js
polymer-iron-rails-1.0.0.pre.rc.2 app/assets/components/prism/components/prism-nasm.js
polymer-iron-rails-1.0.0.pre.rc.1 app/assets/components/prism/components/prism-nasm.js