Regenduft wrote:Using ":" as a line separator in an Enumeration will make PureBasic complain under some rare circumstances.
Honestly I think your desire to use ':' in this manner is a bit absurd. It is used to combine two code lines into one physical line. You are using it to separate two physical lines.
In your code you write:
; ":" makes this comment shiftable with crtl+e to make
; it a nice looking block comment, but doesn't work...
If you leave out the ':' on the line by itself everything still works fine using [ctrl+e] to line things up. If you are re-indenting the lines using [ctrl+i] then you will run into problems.
If you first line things up with [ctrl+e] then add a ';' where you would of previously put the ':' it can function the same way, as long as you don't use [ctrl+e] on those lines again.
I think what you describe as your need could be done with a new 'NOP' (no operation) function to put on the line instead. It would be something that doesn't compile but holds the space and keep it aligned.
How about this?
Code: Select all
;Choose your macro name wisely ;)
Macro __
EndMacro
Enumeration WhyImUsingIt
#bla
__ ; ":" makes this comment shiftable with crtl+e to make
#bli ; it a nice looking block comment, but doesn't work...
#blub
EndEnumeration
UndefineMacro __ ;If you only need it for enumerations it's not a bad idea to remove it afterwards.
I do think this falls in line (pun intended) with being a feature request instead of being a bug report.