From 1eeb602cee142bc3c2b0cda856bcddfb7bf87dfb Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Sat, 28 Nov 2015 13:53:55 -0600 Subject: [PATCH] Fix bad asm highlighting --- static/asm-mode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/asm-mode.js b/static/asm-mode.js index ea8b1dea5..2d78d513a 100644 --- a/static/asm-mode.js +++ b/static/asm-mode.js @@ -37,7 +37,7 @@ CodeMirror.defineMode("asm", function () { }; } - var x86_32regName = /[re]?(ax|bx|cx|dx|si|di|bp|ip|sp)/; + var x86_32regName = /\b[re]?(ax|bx|cx|dx|si|di|bp|ip|sp)\b/; var x86_64regName = /r[\d]+[d]?/; var x86_xregName = /[xy]mm\d+/; var x86_keywords = /PTR|BYTE|[DQ]?WORD|XMMWORD|YMMWORD/;