QB64Official / vscode

QB64 Extension for Visual Studio Code.
MIT License
13 stars 3 forks source link

FR: Additional Highlighting for $INCLUDE, $MetaCommands, and OPTION #121

Closed grymmjack closed 1 year ago

grymmjack commented 1 year ago

I would love it if there was additional highlighting for:

'$INCLUDE:

'$* Meta-commands ($IF, $LET, $ENDIF, etc.)

OPTION

LordDurus commented 1 year ago

Option is already 'blue' do you want it include in the metacommands scope? image

grymmjack commented 1 year ago

Hi @LordDurus been a while :)

Is OPTION a meta command? I thought they all started with $whatever ? hrmm.

If it's a meta command I guess make it part of that group?

🙏🏻

LordDurus commented 1 year ago

I didn't change $Include, that is a bigger ball of wax since it will have go to definition side effects. If include is a must add an item just for it.

I don't know if "Option Explicit" is technically a meta command but I do like it having colored as one. So I included it :)

I did add a scope metacommand.QB64 and it includes REM $DYNAMIC ' $DYNAMIC REM $STATIC ' $STATIC $ASSERTS $CHECKING $COLOR $CONSOLE $DEBUG $ERROR $EXEICON $LET $IF $ELSEIF $END IF $SCREENHIDE $SCREENSHOW $VIRTUALKEYBOARD $VERSIONINFO:Comments $VERSIONINFO:CompanyName $VERSIONINFO:FileDescription $VERSIONINFO:FileVersion $VERSIONINFO:InternalName $VERSIONINFO:LegalCopyright $VERSIONINFO:LegalTrademarks $VERSIONINFO:OriginalFilename $VERSIONINFO:ProductName $VERSIONINFO:ProductVersion $VERSIONINFO:Web Option Explicit

This is in dev v0.9.1

LordDurus commented 1 year ago

There was a fair amount to this change the $ does not work in with textmate regex. So keep an eye on this change and let me know if you see any issues.

LordDurus commented 1 year ago

The highlighting is missing $Resize

LordDurus commented 1 year ago

Updated to handle #Resize

LordDurus commented 1 year ago

$Color is not getting formatted correctly - Fixed and in v0.9.1