astro-ghostcms/.pnpm-store/v3/files/b4/fb569ed91f0eaac06bd426054ea...

7 lines
41 KiB
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
const lang = Object.freeze({ "displayName": "Assembly", "fileTypes": ["asm", "nasm", "yasm", "inc", "s"], "name": "asm", "patterns": [{ "include": "#registers" }, { "include": "#mnemonics" }, { "include": "#constants" }, { "include": "#entities" }, { "include": "#support" }, { "include": "#comments" }, { "include": "#preprocessor" }, { "include": "#strings" }], "repository": { "comments": { "patterns": [{ "match": "(;|(^|\\s)#\\s).*$", "name": "comment.line" }, { "begin": "/\\*", "end": "\\*/", "name": "comment.block" }, { "begin": "^\\s*[\\#%]\\s*if\\s+0\\b", "end": "^\\s*[\\#%]\\s*endif\\b", "name": "comment.preprocessor" }] }, "constants": { "patterns": [{ "match": "(?i)\\b0[by](?:[01][01_]*)\\.(?:(?:[01][01_]*)?(?:p[+-]?(?:[0-9][0-9_]*))?\\b)?", "name": "constant.numeric.binary.floating-point.asm.x86_64" }, { "match": "(?i)\\b0[by](?:[01][01_]*)(?:p[+-]?(?:[0-9][0-9_]*))\\b", "name": "constant.numeric.binary.floating-point.asm.x86_64" }, { "match": "(?i)\\b0[oq](?:[0-7][0-7_]*)\\.(?:(?:[0-7][0-7_]*)?(?:p[+-]?(?:[0-9][0-9_]*))?\\b)?", "name": "constant.numeric.octal.floating-point.asm.x86_64" }, { "match": "(?i)\\b0[oq](?:[0-7][0-7_]*)(?:p[+-]?(?:[0-9][0-9_]*))\\b", "name": "constant.numeric.octal.floating-point.asm.x86_64" }, { "match": "(?i)\\b(?:0[dt])?(?:[0-9][0-9_]*)\\.(?:(?:[0-9][0-9_]*)?(?:e[+-]?(?:[0-9][0-9_]*))?\\b)?", "name": "constant.numeric.decimal.floating-point.asm.x86_64" }, { "match": "(?i)\\b(?:[0-9][0-9_]*)(?:e[+-]?(?:[0-9][0-9_]*))\\b", "name": "constant.numeric.decimal.floating-point.asm.x86_64" }, { "match": "(?i)\\b(?:[0-9][0-9_]*)p(?:[0-9][0-9_]*)?\\b", "name": "constant.numeric.decimal.packed-bcd.asm.x86_64" }, { "match": "(?i)\\b0[xh](?:[[:xdigit:]][[:xdigit:]_]*)\\.(?:(?:[[:xdigit:]][[:xdigit:]_]*)?(?:p[+-]?(?:[0-9][0-9_]*))?\\b)?", "name": "constant.numeric.hex.floating-point.asm.x86_64" }, { "match": "(?i)\\b0[xh](?:[[:xdigit:]][[:xdigit:]_]*)(?:p[+-]?(?:[0-9][0-9_]*))\\b", "name": "constant.numeric.hex.floating-point.asm.x86_64" }, { "match": "(?i)\\$[0-9]\\_?(?:[[:xdigit:]][[:xdigit:]_]*)?\\.(?:(?:[[:xdigit:]][[:xdigit:]_]*)?(?:p[+-]?(?:[0-9][0-9_]*))?\\b)?", "name": "constant.numeric.hex.floating-point.asm.x86_64" }, { "match": "(?i)\\$[0-9]\\_?(?:[[:xdigit:]][[:xdigit:]_]*)(?:p[+-]?(?:[0-9][0-9_]*))\\b", "name": "constant.numeric.hex.floating-point.asm.x86_64" }, { "match": "(?i)\\b(?:(?:0[by](?:[01][01_]*))|(?:(?:[01][01_]*)[by]))\\b", "name": "constant.numeric.binary.asm.x86_64" }, { "match": "(?i)\\b(?:(?:0[oq](?:[0-7][0-7_]*))|(?:(?:[0-7][0-7_]*)[oq]))\\b", "name": "constant.numeric.octal.asm.x86_64" }, { "match": "(?i)\\b(?:(?:0[dt](?:[0-9][0-9_]*))|(?:(?:[0-9][0-9_]*)[dt]?))\\b", "name": "constant.numeric.decimal.asm.x86_64" }, { "match": "(?i)(?:\\$[0-9]\\_?(?:[[:xdigit:]][[:xdigit:]_]*)?)\\b", "name": "constant.numeric.hex.asm.x86_64" }, { "match": "(?i)\\b(?:(?:0[xh](?:[[:xdigit:]][[:xdigit:]_]*))|(?:(?:[[:xdigit:]][[:xdigit:]_]*)[hxHX]))\\b", "name": "constant.numeric.hex.asm.x86_64" }] }, "entities": { "patterns": [{ "match": "((section|segment)\\s+)?\\.((ro)?data|bss|text)", "name": "entity.name.section" }, { "match": "^\\.?(globa?l|extern|required)\\b", "name": "entity.directive" }, { "match": "(\\$\\w+)\\b", "name": "text.variable" }, { "captures": { "1": { "name": "punctuation.separator.asm.x86_64 storage.modifier.asm.x86_64" }, "2": { "name": "entity.name.function.special.asm.x86_64" }, "3": { "name": "punctuation.separator.asm.x86_64" } }, "match": "(\\.\\.@)((?:[[:alpha:]_?](?:[[:alnum:]_$#@~.?]*)))(?:(\\:)?|\\b)", "name": "entity.name.function.asm.x86_64" }, { "captures": { "1": { "name": "punctuation.separator.asm.x86_64 storage.modifier.asm.x86_64" }, "2": { "name": "entity.name.function.asm.x86_64" }, "3": { "name": "punctuation.separator.asm.x86_64" } }, "match": "(?:(\\.)?|\\b)((?:[[:alpha:]_?](?:[[:alnum:]_$#@~.?]*)))(?:(\\:))", "name": "entity.name.function.asm.x86_64" }, { "captures": { "1": { "name": "punctuation.separator.asm.x86_64 storage.modifier.asm.x86_64" }, "2": { "name": "entity.name.function.asm.x86_64" }, "3": { "name": "punctuation.separator.asm
var asm = [
lang
];
export { asm as default };