mrfearless / RadASM2

RadASM v2
355 stars 70 forks source link

Assembler.ini - CodeBlock comment crash #3

Open mrfearless opened 7 years ago

mrfearless commented 7 years ago

Issue:

Something that I've been aware of for a long time and knew that it was causing crashes.

Start typing comment after a single line comment, denoted by the semi-colon ; causes RadASM to crash sometimes with just the comm... part typed and you have to edit the source file in an external text editor to remove the comment and possible corrupted characters inserted at the position of 'comment' (approx)

Example:

Invoke SomeFunction, Param1    ; here is my comm...

As you start typing 'here is my comment' RadASM can sometimes crash.

Solution:

Comment out the line in the codeblock section of the Assembler.ini (masm.ini, tasm.ini etc) by prefixing the line with a ; character.

[CodeBlock] 
;15=comment,,,,32

Have begun to update the default ini files to comment this out. Will leave this issue open so others will see it as well, for the moment.

blue-devil commented 2 years ago

Hello @mrfearless Unfortunately i cannot replicate this problem :/

Here is my CodeBlock section on MASM64.ini

[CodeBlock]
1=$ proc,? endp,,,6
2=.if,.endif,.elseif,.else,0
3=.while,.endw,.break,.continue,0
4=
;;switch,endsw,case,default,0
5=? struct|? struc|? union,? ends,,,2
6=$ macro,endm,,,14
7=.code,,,,16
8=.data,,,,16
9=.data?,,,,16
10=.const,,,,16
11=BEGIN,END,,,0,1
12=Method,MethodEnd,,,6
13=Object,ObjectEnd,,,4
14=;##\,;##/,,,4
15=comment,,,,32
16=.repeat,.until|.untilcxz,.break,.continue,0