Sha256: 2c8cc92bd7f917c1b69cb473da2e48538407c376ba744fa712da9dc2fc7dd008

Contents?: true

Size: 801 Bytes

Versions: 7

Compression:

Stored size: 801 Bytes

Contents

Prism.languages.nasm = {
    'comment': /;.*$/m,
    'string': /("|'|`)(\\?.)*?\1/gm,
    '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/gi, 
        alias: 'variable'
    },
    'number': /(\b|-|(?=\$))(0[hHxX][\dA-Fa-f]*\.?[\dA-Fa-f]+([pP][+-]?\d+)?|\d[\dA-Fa-f]+[hHxX]|\$\d[\dA-Fa-f]*|0[oOqQ][0-7]+|[0-7]+[oOqQ]|0[bByY][01]+|[01]+[bByY]|0[dDtT]\d+|\d+[dDtT]?|\d*\.?\d+([Ee][+-]?\d+)?)\b/g,
    'operator': /[\[\]\*+\-\/%<>=&|\$!]/gm
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyhyhy-1.0.0 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js
hyhyhy-0.0.9 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js
hyhyhy-0.0.8 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js
hyhyhy-0.0.7 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js
hyhyhy-0.0.6 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js
hyhyhy-0.0.5 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js
hyhyhy-0.0.4 lib/hyhyhy/structure/_includes/prism/components/prism-nasm.js