Issue #721 resolved

GAS syntax error

rplantz
created an issue

Using the rst code:

{{{

!rst

.. literalinclude:: progs/chap10/yesNo2.s :language: gas :linenos: }}} I get an error on the following correct gas syntax:

{{{

!gas

cmpb $'y', response(%rbp) }}}

The single quotes around 'y' give: {{{

!html

<span class="err">'</span><span class="no">y</span><span class="err">'</span> }}} I hacked a fix by changing the char definition in asm.py:

{{{

!python

char = r'[a-zA-Z$._0-9@]' }}}

changed to: {{{

!python

char = r'[a-zA-Z$._0-9@\']' }}}

Don't know if there is a better way.

Comments (1)

  1. Log in to comment