From 9f35022f19b250224acbdfa197f6ef532f5cab35 Mon Sep 17 00:00:00 2001 From: yzamir Date: Fri, 6 Oct 2023 16:03:57 +0300 Subject: [PATCH] pusha-and-popa-in-editor Signed-off-by: yzamir --- public/js/components/code-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/components/code-editor.js b/public/js/components/code-editor.js index b37824c..8755365 100644 --- a/public/js/components/code-editor.js +++ b/public/js/components/code-editor.js @@ -126,7 +126,7 @@ class CodeEditor extends HTMLElement { highlightText() { const text = this.editor.innerHTML; const highlightedText = text - .replace(/(SHRB|JUMP|JZA|JZB|ADDA|ADDB|END|DATA|POP|PUSH|CALL|RET|LOADABP|STOREABP)([^:])/gi, '$1$2') + .replace(/(SHRB|JUMP|JZA|JZB|ADDA|ADDB|END|DATA|POPA|PUSHA|CALL|RET|LOADABP|STOREABP)([^:])/gi, '$1$2') .replace(/(NOP|LOADA|LOADB|STOREA|STOREB|ORA|ORB|ANDA|ANDB|XORA|XORB|NOTA|NOTB|SHLA|SHLB|SHRA)([^:])/gi, '$1$2') .replace(/(0x[\da-fA-F]{2})/g, '$1') .replace(/(^|
)(\s*\w+:)/g, '$1$2')