-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$VERSIONINFO enhancement (#20) #392
$VERSIONINFO enhancement (#20) #392
Conversation
Shouldn't this PR not do the required adjustments in qb64pe.bas to avoid those warnings? |
We can wrap the Did I even understand the question correctly? 🙂 |
For me it's unclear why we need to throw warnings at all, if both methods (w/ and w/o quotes) are valid and allowed? But, if we want warn about missing quotes, then we should clean our own house, making sure we don't get warnings on our own code. Just a matter of my sick perfectionism I guess :) |
Ah. Ok. I get it. And you are right. I added the warnings because that's what #20 suggested. And TBH, adding warnings does seem a little useful. Without the quotes the IDE attempts to syntax-highlight the string which ends up looking ugly. The warning basically motivates the user to add the quotes. Fun fact: When I first started using QB64, I always used to add the quotes to the I am good both ways:
|
Yeah, noticed that too when implementing the code export stuff, but it's rather a matter of finetuning the syntax highlighter then. I already did that for the code export to avoid this faulty highlighting. I can look at the IDE highlighter later, for now I'd say just clean our house :) |
Done. |
BTW in #20 Matt mentioned that by his knowlegde $VERSIONINFO was the only Meta-Command which allows unquoted strings, but I know at least one other, it's $ERROR, maybe you want to look at that too and fix it in the same run. What's about $LET, can we define a string such as $LET me = RhoSigma? Must admit I avoid the pre-compiler till now. |
Fair callout on |
e7aecc6
to
1d95c73
Compare
Enabled $ERROR to handle strings enclosed using |
With your new FUNCTION RemoveStringEnclosingPair() you may want to check its usability for |
I looked at the |
This PR implements
$VERSIONINFO
enhancement as described in #20.This works in a backwards compatible way which allows the old behavior but also suggests the user (via warnings) to enclose the strings using the string bracket delimiter
''
.FILEVERSION#
andPRODUCTVERSION#
are exemptedOptions > Ignore Warnings
Warning messages for current

qb64pe.bas
$VERSIONINFO
:Closes #20.