6 lines
43 KiB
JavaScript
6 lines
43 KiB
JavaScript
|
|
const lang = Object.freeze(JSON.parse("{\"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[hx]\\\\h[_\\\\h]*\\\\.(?:(?:\\\\h[_\\\\h]*)?(?:p[-+]?[0-9][0-9_]*)?\\\\b)?\",\"name\":\"constant.numeric.hex.floating-point.asm.x86_64\"},{\"match\":\"(?i)\\\\b0[hx]\\\\h[_\\\\h]*p[-+]?[0-9][0-9_]*\\\\b\",\"name\":\"constant.numeric.hex.floating-point.asm.x86_64\"},{\"match\":\"(?i)\\\\$[0-9]_?(?:\\\\h[_\\\\h]*)?\\\\.(?:(?:\\\\h[_\\\\h]*)?(?:p[-+]?[0-9][0-9_]*)?\\\\b)?\",\"name\":\"constant.numeric.hex.floating-point.asm.x86_64\"},{\"match\":\"(?i)\\\\$[0-9]_?\\\\h[_\\\\h]*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]_?(?:\\\\h[_\\\\h]*)?\\\\b\",\"name\":\"constant.numeric.hex.asm.x86_64\"},{\"match\":\"(?i)\\\\b(?:0[hx]\\\\h[_\\\\h]*|\\\\h[_\\\\h]*[HXhx])\\\\b\",\"name\":\"constant.numeric.hex.asm.x86_64\"}]},\"entities\":{\"patterns\":[{\"match\":\"((se(?:ction|gment))\\\\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.x86_64\"}},\"match\":\"(\\\\.)([0-9]+[#$.?@_~[:alnum:]]*)(?:(:)?|\\\\b)\",\"name\":\"entity.name.function
|
||
|
|
|
||
|
|
export default [
|
||
|
|
lang
|
||
|
|
]
|