diff --git a/public/posts/2026/2026-01-01-Advent-of-Compiler-Optimisations-Study-Notes-01.md b/public/posts/2026/2026-01-01-Advent-of-Compiler-Optimisations-Study-Notes-01.md index bcfd10e..5105153 100644 --- a/public/posts/2026/2026-01-01-Advent-of-Compiler-Optimisations-Study-Notes-01.md +++ b/public/posts/2026/2026-01-01-Advent-of-Compiler-Optimisations-Study-Notes-01.md @@ -83,7 +83,7 @@ Disassembly of section .text: $ size main.o ``` -```bash +```text text data bss dec hex filename 103 0 0 103 67 main.o ``` @@ -110,7 +110,7 @@ Disassembly of section .text: $ size main.o ``` -```bash +```text text data bss dec hex filename 90 0 0 90 5a main.o ``` @@ -137,7 +137,7 @@ Disassembly of section .text: $ size main.o ``` -```bash +```text text data bss dec hex filename 87 0 0 87 57 main.o ``` @@ -154,7 +154,7 @@ $ rm -f (path filter *.o); clang -O1 -c main.c; llvm-objdump -d --x86-asm-syntax ``` ```bash -rm -f (path filter *.o); clang -O1 -c main.c; llvm-objdump -d --x86-asm-syntax=att main.o +$ rm -f (path filter *.o); clang -O1 -c main.c; llvm-objdump -d --x86-asm-syntax=att main.o ``` ```x86asm @@ -217,7 +217,7 @@ int main() { $ rm -f (path filter *.out); clang -g -O2 -o app.out main.c; lldb app.out ``` -```bash +```text (lldb) target create "app.out" Current executable set to '/home/gapry/Workspaces/test/app.out' (x86_64). (lldb) breakpoint set -n main diff --git a/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-02.md b/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-02.md index 4a44c24..963f963 100644 --- a/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-02.md +++ b/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-02.md @@ -88,7 +88,7 @@ Hence, the compiler needs to use two instructions to execute the addition at the ## Optimized Analysis ```bash -rm -f (path filter *.o); clang -O2 -c add.c; llvm-objdump -d --x86-asm-syntax=att add.o +$ rm -f (path filter *.o); clang -O2 -c add.c; llvm-objdump -d --x86-asm-syntax=att add.o ``` ```x86asm diff --git a/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-03.md b/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-03.md index 60170e9..fa3d98d 100644 --- a/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-03.md +++ b/public/posts/2026/2026-01-31-Advent-of-Compiler-Optimisations-Study-Notes-03.md @@ -120,7 +120,7 @@ The instruction `sub sp, sp, #0x20` performs Stack Allocation by decrementing th The subsequent `stp` (Store Pair) instruction implements Context Saving, pushing the Frame Pointer (`X29`) and Link Register (`X30`) onto the stack to facilitate the Stack Unwinding process during the Function Epilogue. -```bash +```text | Higher Address | | | +----------------+ <--- Previous SP @@ -229,7 +229,7 @@ In the unoptimized execution, each recursive call of `add(x + 1, y - 1)` trigger resulting in the allocation of a new activation record. This manifests as `O(n)` space complexity, as the stack grows linearly with the input value of `y`. -```bash +```text | Higher Address | +--------------------+ | add(1, 10) Frame | (Initial Call: a = 1, b = 10) @@ -265,7 +265,7 @@ as no further operations are required after the callee returns. This reduces the space complexity from `O(n)` to `O(1)` and eliminates the overhead associated with stack frame allocation and deallocation. -```bash +```text | Higher Address | | Higher Address | | Higher Address | +--------------------+ +-------------------+ +-------------------+ <-- Previous SP | add(1, 10) Frame | -> | add(2, 9) Frame | -> ... -> | add(11, 0) Frame | (Reused for all steps) diff --git a/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-05.md b/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-05.md index 9ba5b30..c33b18b 100644 --- a/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-05.md +++ b/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-05.md @@ -217,7 +217,7 @@ The compiler defaults to the `mul` instruction because decomposing the constant If the compiler were to adopt a manual shift-and-subtract strategy, the code generator would need to output three instructions: ```armasm -add w8, w0, w0, lsl 1 // w8 = x + 2x = 3x +add w8, w0, w0, lsl #1 // w8 = x + 2x = 3x lsl w8, w8, #2 // w8 = w8 << 2 = 3x << 2 = 3x * 4 = 12x sub w0, w8, w0 // w0 = 12x - x = 11x ``` diff --git a/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-06.md b/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-06.md index e583788..31f9ebd 100644 --- a/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-06.md +++ b/public/posts/2026/2026-02-28-Advent-of-Compiler-Optimisations-Study-Notes-06.md @@ -154,7 +154,7 @@ Disassembly of section .text: ``` Instruction: -```text +```x86asm shrl , ; shr := Shift Right Logical, that is = >> ``` @@ -208,7 +208,7 @@ cmp , #imm ; Compares w0 with #0x0, and update the processor csel , , , ; Conditional Select. ; If the condition lt (Less Than) is true, it selects w8; ; otherwise, it selects w0. -asr , , #imm : Arithmetic Shift Right, w0 = w8 >> 9 +asr , , #imm ; Arithmetic Shift Right, w0 = w8 >> 9 ``` | Flag | Name | Bit | Description (when set to 1) | diff --git a/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-07.md b/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-07.md index c97cb0b..2c8348a 100644 --- a/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-07.md +++ b/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-07.md @@ -72,7 +72,7 @@ unsigned div10(unsigned x) { By disassembling the compiled object file, we can observe the magic number $M$ and the shift operation. ```bash -clang -O2 -c main.c; llvm-objdump -d --disassemble-symbols=div10 --x86-asm-syntax=att main.o +$ clang -O2 -c main.c; llvm-objdump -d --disassemble-symbols=div10 --x86-asm-syntax=att main.o ``` ```x86asm diff --git a/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-08.md b/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-08.md index cb75d20..59555b6 100644 --- a/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-08.md +++ b/public/posts/2026/2026-03-31-Advent-of-Compiler-Optimisations-Study-Notes-08.md @@ -98,7 +98,7 @@ $ g++ -O2 -S sum1.cpp -o sum1.s $ llvm-mca -march=x86-64 -mcpu=x86-64 -timeline sum1.s ``` -```bash +```text [0] Code Region - MyLoop Iterations: 100 @@ -173,7 +173,7 @@ $ clang++ -O2 -S sum1.cpp -o sum1.s $ llvm-mca -march=x86-64 -mcpu=x86-64 -timeline sum1.s ``` -```bash +```text [0] Code Region - MyLoop Iterations: 100 @@ -284,7 +284,7 @@ $ g++ -O2 -S sum2.cpp -o sum2.s $ llvm-mca -march=x86-64 -mcpu=x86-64 -timeline sum2.s ``` -```bash +```text [0] Code Region - MyLoop Iterations: 100 @@ -364,7 +364,7 @@ $ clang++ -O2 -S sum2.cpp -o sum2.s $ llvm-mca -march=x86-64 -mcpu=x86-64 -timeline sum2.s ``` -```bash +```text sum2.s:67:3: error: found an invalid region end directive # LLVM-MCA-END ^ diff --git a/public/posts/2026/2026-04-30-Advent-of-Compiler-Optimisations-Study-Notes-10.md b/public/posts/2026/2026-04-30-Advent-of-Compiler-Optimisations-Study-Notes-10.md index 6616a08..0a523ef 100644 --- a/public/posts/2026/2026-04-30-Advent-of-Compiler-Optimisations-Study-Notes-10.md +++ b/public/posts/2026/2026-04-30-Advent-of-Compiler-Optimisations-Study-Notes-10.md @@ -103,7 +103,7 @@ $ clang++ -std=c++20 -O2 -fno-unroll-loops -fno-vectorize -mno-sse -mno-avx -c s $ llvm-objdump -d --disassemble-symbols=$(nm sum.o | awk '/sum/ {print $3}') --x86-asm-syntax=intel sum.o ``` -```txt +```x86asm sum.o: file format elf64-x86-64 Disassembly of section .text: @@ -150,7 +150,7 @@ $ clang++ -std=c++20 -O2 -fno-unroll-loops -fno-vectorize -mno-sse -mno-avx -c s $ llvm-objdump -d --disassemble-symbols=$(nm sum.o | awk '/sum/ {print $3}') --x86-asm-syntax=intel sum.o ``` -```text +```x86asm sum.o: file format elf64-x86-64 Disassembly of section .text: @@ -195,7 +195,7 @@ $ clang++ -std=c++20 -O2 -fno-vectorize -mno-sse -mno-avx -c sum.cpp $ llvm-objdump -d --disassemble-symbols=$(nm sum.o | awk '/sum/ {print $3}') --x86-asm-syntax=intel sum.o ``` -```text +```x86asm sum.o: file format elf64-x86-64 Disassembly of section .text: @@ -245,7 +245,7 @@ $ clang++ -std=c++20 -O2 -fno-vectorize -mno-sse -mno-avx -c sum.cpp $ radare2 -q -e bin.cache=true -c "aa; pdf" sum.o ``` -```text +```radare2 ;-- section..text: ;-- .text: ;-- reloc..text: @@ -295,7 +295,7 @@ $ clang++ -std=c++20 -O2 -fno-vectorize -mno-sse -mno-avx -c sum.cpp $ radare2 -q -e bin.cache=true -c "aa; pdf" sum.o ``` -```text +```radare2 ;-- section..text: ;-- .text: ;-- reloc..text: diff --git a/public/posts/2026/2026-05-31-Advent-of-Compiler-Optimisations-Study-Notes-11.md b/public/posts/2026/2026-05-31-Advent-of-Compiler-Optimisations-Study-Notes-11.md index d0b6c8e..9e225f5 100644 --- a/public/posts/2026/2026-05-31-Advent-of-Compiler-Optimisations-Study-Notes-11.md +++ b/public/posts/2026/2026-05-31-Advent-of-Compiler-Optimisations-Study-Notes-11.md @@ -61,7 +61,7 @@ $ rm -f app.out && clang -O2 -o app.out main.c $ llvm-objdump -d --disassemble-symbols=count_set_bits --x86-asm-syntax=att app.out ``` -```text +```x86asm 0000000000001140 : 1140: 31 c0 xorl %eax, %eax 1142: 85 ff testl %edi, %edi @@ -81,7 +81,7 @@ $ rm -f app.out && gcc -O2 -o app.out main.c $ llvm-objdump -d --disassemble-symbols=count_set_bits --x86-asm-syntax=att app.out ``` -```text +```x86asm 0000000000001180 : 1180: f3 0f 1e fa endbr64 1184: 31 c0 xorl %eax, %eax @@ -134,7 +134,7 @@ $ rm -f app.out && clang -O2 -mpopcnt -o app.out main.c $ llvm-objdump -d --disassemble-symbols=count_set_bits --x86-asm-syntax=att app.out ``` -```text +```x86asm 0000000000001140 : 1140: f3 0f b8 c7 popcntl %edi, %eax 1144: c3 retq @@ -146,7 +146,7 @@ $ rm -f app.out && gcc -O2 -mpopcnt -o app.out main.c $ llvm-objdump -d --disassemble-symbols=count_set_bits --x86-asm-syntax=att app.out ``` -```text +```x86asm 0000000000001180 : 1180: f3 0f 1e fa endbr64 1184: 31 c0 xorl %eax, %eax diff --git a/src/components/MarkdownRenderer/MarkdownRenderer.css b/src/components/MarkdownRenderer/MarkdownRenderer.css index d6a17bc..4f49828 100644 --- a/src/components/MarkdownRenderer/MarkdownRenderer.css +++ b/src/components/MarkdownRenderer/MarkdownRenderer.css @@ -105,6 +105,30 @@ display: none; } +.markdown-body .ansi-green { + color: var(--color-ansi-green); +} + +.markdown-body .ansi-red { + color: var(--color-ansi-red); +} + +.markdown-body .ansi-yellow { + color: var(--color-ansi-yellow); +} + +.markdown-body .ansi-blue { + color: var(--color-ansi-blue); +} + +.markdown-body .ansi-magenta { + color: var(--color-ansi-magenta); +} + +.markdown-body .ansi-cyan { + color: var(--color-ansi-cyan); +} + .katex { color: var(--color-text); font-size: 1.1em; diff --git a/src/components/MarkdownRenderer/MarkdownRenderer.jsx b/src/components/MarkdownRenderer/MarkdownRenderer.jsx index efad521..5463d30 100644 --- a/src/components/MarkdownRenderer/MarkdownRenderer.jsx +++ b/src/components/MarkdownRenderer/MarkdownRenderer.jsx @@ -3,30 +3,20 @@ import remarkGfm from 'remark-gfm'; import remarkMath from 'remark-math'; import rehypeKatex from 'rehype-katex'; import 'katex/dist/katex.min.css'; -import { Prism as PrismHighlighter } from 'react-syntax-highlighter'; -import { Light as HLJSHighlighter } from 'react-syntax-highlighter'; +import { Prism as PrismHighlighter, PrismLight } from 'react-syntax-highlighter'; import { vscDarkPlus as PrismStyles } from 'react-syntax-highlighter/dist/esm/styles/prism'; -import { darcula as HLJSStyles } from 'react-syntax-highlighter/dist/esm/styles/hljs'; +import x86asm from './prism/x86asm'; +import armasm from './prism/armasm'; +import radare2 from './prism/radare2'; import './MarkdownRenderer.css' -import x86asm from 'react-syntax-highlighter/dist/esm/languages/hljs/x86asm'; -import armasm from 'react-syntax-highlighter/dist/esm/languages/hljs/armasm'; +PrismLight.registerLanguage(x86asm.displayName, x86asm); +PrismLight.registerLanguage(armasm.displayName, armasm); +PrismLight.registerLanguage(radare2.displayName, radare2); -HLJSHighlighter.registerLanguage('x86asm', x86asm); -HLJSHighlighter.registerLanguage('armasm', armasm); - -const HLJS_LANGS = []; // ['x86asm', 'armasm']; - -const HLJSCodeBlock = ({ language, content, ...props }) => ( - - {content} - -); +const LANGUAGE_OVERRIDES = { + armasm: armasm.displayName, +}; const PrismCodeBlock = ({ language, content, ...props }) => ( { const match = /language-(\w+)/.exec(className || ''); if (!inline && match) { - const language = match[1]; + const language = LANGUAGE_OVERRIDES[match[1]] || match[1]; const content = String(children).replace(/\n$/, ''); - - const isHLJS = HLJS_LANGS.includes(language); - const Component = isHLJS ? HLJSCodeBlock : PrismCodeBlock; - return ; + return ; } return ( diff --git a/src/components/MarkdownRenderer/prism/armasm.js b/src/components/MarkdownRenderer/prism/armasm.js new file mode 100644 index 0000000..6899ffe --- /dev/null +++ b/src/components/MarkdownRenderer/prism/armasm.js @@ -0,0 +1,23 @@ +export default function armasm(Prism) { + Prism.languages[armasm.displayName] = { + 'asm-comment': /(?:\/\/|;).*/, + 'asm-string': /"(?:\\.|[^"\\\n])*"/, + 'asm-symbol': /<[^<>\n]+>/, + 'asm-immediate': { + pattern: /#-?(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i, + alias: 'ansi-red', + }, + 'asm-register': { + pattern: /\b(?:[wx](?:[12]?\d|30|zr)|w?sp|[vqdshb](?:[12]?\d|3[01])(?:\.\d*[bhsdq])?)\b(?!:)/, + alias: 'ansi-cyan', + }, + 'asm-address': { + pattern: /(^|[^\w+\-.#])0x[\da-f]+\b/i, + lookbehind: true, + alias: 'ansi-yellow', + }, + }; +} + +armasm.displayName = 'armasm-objdump'; +armasm.aliases = []; diff --git a/src/components/MarkdownRenderer/prism/radare2.js b/src/components/MarkdownRenderer/prism/radare2.js new file mode 100644 index 0000000..91e70c1 --- /dev/null +++ b/src/components/MarkdownRenderer/prism/radare2.js @@ -0,0 +1,113 @@ +import { REGISTER } from './x86asm.js'; + +const SIZE = /(?:byte|word|dword|qword|tbyte|xmmword|ymmword|zmmword)/.source; + +const mnemonic = (names, alias) => ({ + pattern: RegExp(`(^[ \\t]+)(?:${names})\\b(?:[ \\t]+${SIZE}\\b)?`, 'm'), + lookbehind: true, + alias, +}); + +const byte = (value, alias) => ({ + pattern: RegExp(`(^(?:..)*?)${value}`), + lookbehind: true, + alias, +}); + +export default function radare2(Prism) { + Prism.languages.radare2 = { + 'r2-flag': { + pattern: /;-- [^;\n]*/, + alias: 'ansi-cyan', + }, + 'r2-flow-back': { + pattern: /┌─*>|└─*<|╎/, + alias: 'ansi-blue', + }, + 'r2-flow': { + pattern: /[┌└│─├┤┬┴┼]+[<>]?/, + alias: 'ansi-cyan', + }, + 'r2-function': { + pattern: /^ \d+: \S+ \(.*\);$/m, + inside: { + 'r2-function-name': { + pattern: /(: )\S+/, + lookbehind: true, + alias: 'ansi-red', + }, + }, + }, + 'r2-reloc': /; RELOC [^;\n]*/, + 'r2-section': /; \[\d+\] .*/, + 'r2-variable': { + pattern: /; (?:arg|var) .*/, + inside: { + 'r2-variable-type': { + pattern: /((?:arg|var) )[^@\n]+/, + lookbehind: true, + alias: 'ansi-blue', + }, + 'r2-variable-address': { + pattern: /@ .+/, + alias: 'ansi-cyan', + }, + }, + }, + 'r2-comment-variable': { + pattern: /; (?:arg|var)\w+[^;\n]*/, + alias: 'ansi-blue', + }, + 'r2-comment': { + pattern: /;.*/, + alias: 'ansi-red', + }, + 'r2-offset': { + pattern: /0x[\da-f]{8,16}(?=[ \t]{2,}[\da-f]{2})/, + alias: 'ansi-green', + }, + 'r2-bytes': { + pattern: /(^[ \t]+)(?:[\da-f]{2})+\.?(?=[ \t])/m, + lookbehind: true, + inside: { + 'r2-byte-zero': byte('00', 'ansi-green'), + 'r2-byte-max': byte('ff', 'ansi-red'), + 'r2-byte-delete': byte('7f', 'ansi-cyan'), + 'r2-byte-text': byte('(?:[2-6][\\da-f]|7[\\da-e])', 'ansi-yellow'), + }, + }, + 'r2-jump': { + pattern: /(^[ \t]+)(?:j[a-z]{1,4}|call)\b[^;\n]*/m, + lookbehind: true, + alias: 'ansi-green', + }, + 'r2-return': mnemonic('ret', 'ansi-red'), + 'r2-nop': mnemonic('nop', 'ansi-blue'), + 'r2-stack': mnemonic('push|pop', 'ansi-magenta'), + 'r2-math': mnemonic('add|adc|sub|sbb|i?mul|i?div|inc|dec|neg|and|x?or|not|sh[lr]|sa[lr]|ro[lr]|rc[lr]|cmp|test|(?:add|sub|mul|div)[sp][sd]', 'ansi-yellow'), + 'r2-local': { + pattern: /\b(?:var|arg)_\w+\b/, + alias: 'ansi-blue', + }, + 'r2-flag-name': { + pattern: /\b(?:reloc|sym|obj|str|loc|fcn|section|method)\.[\w.:]+/, + alias: 'ansi-cyan', + }, + 'r2-register': { + pattern: REGISTER, + alias: 'ansi-cyan', + }, + 'r2-size': { + pattern: RegExp(`(,[ \\t]*)${SIZE}\\b`), + lookbehind: true, + alias: 'ansi-cyan', + }, + 'r2-number': { + pattern: /\b(?:0x[\da-f]+|\d+)\b/, + alias: 'ansi-yellow', + }, + }; +} + +radare2.displayName = 'radare2'; +radare2.aliases = []; diff --git a/src/components/MarkdownRenderer/prism/x86asm.js b/src/components/MarkdownRenderer/prism/x86asm.js new file mode 100644 index 0000000..31622d9 --- /dev/null +++ b/src/components/MarkdownRenderer/prism/x86asm.js @@ -0,0 +1,75 @@ +const NUMBER = /(?:0x[\da-f]+|\d+)/.source; +export const REGISTER = /\bst\(\d\)|\b(?:[re]?(?:[abcd]x|[sd]i|[sb]p|ip)|[abcd][lh]|(?:[sd]i|[sb]p)l|r(?:[89]|1[0-5])[dwb]?|[c-gs]s|[xyz]mm(?:[12]?\d|3[01])|mm[0-7]|st|k[0-7]|[cd]r\d{1,2})\b/; + +export default function x86asm(Prism) { + Prism.languages.x86asm = { + 'asm-comment': /[#;].*/, + 'asm-string': /"(?:\\.|[^"\\\n])*"/, + 'asm-register-stack': { + pattern: /%st\(\d\)/, + alias: ['asm-register', 'ansi-cyan'], + }, + 'asm-prefix': /^[ \t]*[\da-f]+:(?:[ \t]+[\da-f]{2}(?=\s|$))+|^[\da-f]{8,16}(?=[ \t]+<)/m, + 'asm-symbol': /<[^<>\n]+>/, + 'asm-memory': [ + { + pattern: RegExp(`(?:%\\w+:)?(?:-?${NUMBER}|[a-z_.][\\w.@+-]*)?\\([%,][^()\\n]*\\)`, 'i'), + alias: 'ansi-green', + inside: { + 'asm-register': { + pattern: /%\w+/, + alias: 'ansi-cyan', + }, + 'asm-immediate': { + pattern: /(,)\d+(?=\))/, + lookbehind: true, + alias: 'ansi-red', + }, + }, + }, + { + pattern: /\[[^[\]\n]*\]/, + alias: 'ansi-green', + inside: { + 'asm-register': { + pattern: REGISTER, + alias: 'ansi-cyan', + }, + 'asm-immediate': { + pattern: RegExp(`\\b${NUMBER}\\b(?!\\*)`, 'i'), + alias: 'ansi-red', + }, + }, + }, + ], + 'asm-address': { + pattern: RegExp(`(\\b(?:j[a-z]{1,4}|call[a-z]?|loop[a-z]{0,2})[ \\t]+)${NUMBER}\\b`, 'i'), + lookbehind: true, + alias: 'ansi-yellow', + }, + 'asm-immediate': [ + { + pattern: RegExp(`\\$-?${NUMBER}`, 'i'), + alias: 'ansi-red', + }, + { + pattern: RegExp(`(^|[\\s,])-?${NUMBER}\\b(?![:\\w])`, 'i'), + lookbehind: true, + alias: 'ansi-red', + }, + ], + 'asm-register': [ + { + pattern: /%\w+/, + alias: 'ansi-cyan', + }, + { + pattern: REGISTER, + alias: 'ansi-cyan', + }, + ], + }; +} + +x86asm.displayName = 'x86asm'; +x86asm.aliases = []; diff --git a/src/styles/index.css b/src/styles/index.css index c000530..c1b46f4 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -19,6 +19,13 @@ --color-accent: #ff7875; --color-accent-strong: #ff4d4f; + --color-ansi-red: #f14c4c; + --color-ansi-green: #23d18b; + --color-ansi-yellow: #f5f543; + --color-ansi-blue: #3b8eea; + --color-ansi-magenta: #d670d6; + --color-ansi-cyan: #29b8db; + --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; --font-code: 'Fira Code', 'Cascadia Code', monospace;