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')