zufuliu / notepad4

Notepad4 (Notepad2⨯2, Notepad2++) is a light-weight Scintilla based text editor for Windows with syntax highlighting, code folding, auto-completion and API list for many programming languages and documents, bundled with file browser plugin matepath.
Other
2.56k stars 179 forks source link

LongPtr colouring #735

Open meteorquake opened 9 months ago

meteorquake commented 9 months ago

In this line in Visual Basic - lStructSize As Long: hwndOwner As LongPtr "LongPtr" is not coloured as "Long". Although a pseudotype, I think it should be coloured just the same :) Cheers, David

zufuliu commented 9 months ago

Fixed by b64e2a46bcf428faf12c8bf0f759f57f05ccede8.

meteorquake commented 9 months ago

Cheers! Now just looking at that destination list there should also be coloured as CLng - CCur CVar CVErr CLngLng CLngPtr CVDate

(Technically CVDate could be argued not to be coloured but I think it is helpful to be.)

and also coloured as String - Currency LongLong LongPtr In addition Variant should be coloured to match those

I'll have a look for others.

meteorquake commented 9 months ago

Sorry that wasn't meant to close it, the drop list was ambigous!

zufuliu commented 9 months ago

Now just looking at that destination list there should also be coloured as CLng

Done in 6fcc1702e00d5c85fdd6a77287360ae81aa40926.

meteorquake commented 9 months ago

Cheers that looks good! I'm just going to add new entries here as I encounter them which you might want to process periodically. New addition: PtrSafe should be coloured same as Function

zufuliu commented 9 months ago

function list will be added later (when LexVB.cxx is rewritten, keywords in stlVB.c and stlVBS.c will be changed to auto-generating from API files), I already have incomplete API files for VB and VBS, you can post document links for keyword, function and constant, etc. here. I can add them into the API file.