(asma) only ignore [ or ] if it is a whole token

This commit is contained in:
Andrew Alderwick 2022-06-09 21:42:13 +01:00
parent f7498cff5c
commit cabccd61fc
1 changed files with 9 additions and 8 deletions

View File

@ -210,7 +210,10 @@
JMP2r JMP2r
&preamble &preamble
"%BRK 20 '{ 20 "00 20 '} 20 "@on-reset 20 "%BRK 20 '{ 20 "00 20 '} 20
"%[ 20 '{ 20 '} 20
"%] 20 '{ 20 '} 20
"@on-reset 20
&preamble-end &preamble-end
( (
@ -963,14 +966,12 @@
&28 :&27 $2 '( 00 :asma-comment-start &28 :&27 $2 '( 00 :asma-comment-start
&29 :&28 :&2c ') 00 :asma-comment-end &29 :&28 :&2c ') 00 :asma-comment-end
&2c $2 $2 ', 00 :asma-literal-rel-addr &2c $2 $2 ', 00 :asma-literal-rel-addr
&_entry :&26 :&5d '. 00 :asma-literal-zero-addr &_entry :&26 :&7b '. 00 :asma-literal-zero-addr
&3a $2 $2 ': 00 :asma-abs-addr &3a $2 $2 ': 00 :asma-abs-addr
&3b :&3a $2 '; 00 :asma-literal-abs-addr &3b :&3a :&40 '; 00 :asma-literal-abs-addr
&40 :&3b :&5b '@ 00 :asma-label-define &40 $2 $2 '@ 00 :asma-label-define
&5b $2 $2 '[ 00 :asma-ignore &7b :&3b :&7d '{ 00 :asma-ignore
&5d :&40 :&7d '] 00 :asma-ignore &7c $2 $2 '| 00 :asma-pad-absolute
&7b $2 $2 '{ 00 :asma-ignore
&7c :&7b $2 '| 00 :asma-pad-absolute
&7d :&7c :&7e '} 00 :asma-ignore &7d :&7c :&7e '} 00 :asma-ignore
&7e $2 $2 '~ 00 :asma-include &7e $2 $2 '~ 00 :asma-include