summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
authorJonas Bushart <jonas@bushart.org>2020-06-01 16:23:36 +0200
committerGitHub <noreply@github.com>2020-06-01 16:23:36 +0200
commit0e62360d997f62bf12ff214f89bdfcf4cf34e526 (patch)
treecc53e373b7c5c6c66983b9812284137f678840db /pygments
parente064c55b4096a1e4f749539d5682a6db1851ec64 (diff)
downloadpygments-git-0e62360d997f62bf12ff214f89bdfcf4cf34e526.tar.gz
Nasm: Update register syntax for 64-bit (#1465)
x86_64 has 8 registers r8-r15. The current syntax only accepts them with a trailing letter. The letter is used to indicate the register size. However, r8 is also a valid register, for a 64 bit wide register. For reference on the register names see https://www.cs.uaf.edu/2017/fall/cs301/reference/x86_64.html
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py
index 8e8b09ee..89c758c8 100644
--- a/pygments/lexers/asm.py
+++ b/pygments/lexers/asm.py
@@ -686,7 +686,7 @@ class NasmLexer(RegexLexer):
floatn = decn + r'\.e?' + decn
string = r'"(\\"|[^"\n])*"|' + r"'(\\'|[^'\n])*'|" + r"`(\\`|[^`\n])*`"
declkw = r'(?:res|d)[bwdqt]|times'
- register = (r'r[0-9][0-5]?[bwd]|'
+ register = (r'r[0-9][0-5]?[bwd]?|'
r'[a-d][lh]|[er]?[a-d]x|[er]?[sb]p|[er]?[sd]i|[c-gs]s|st[0-7]|'
r'mm[0-7]|cr[0-4]|dr[0-367]|tr[3-7]')
wordop = r'seg|wrt|strict'