It is currently April 16th, 2024, 4:36 am

RainLexer 2.20.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 3:25 pm That seems to help... I still get a "warning",

Code: Select all

C:\RainLexer\RainLexer\Lexer.cpp(93,23): warning C4267:  'initializing': conversion from 'size_t' to 'int', possible lo
ss of data [C:\RainLexer\RainLexer\RainLexer.vcxproj]
C:\RainLexer\RainLexer\Lexer.cpp(427,62): warning C4267:  'initializing': conversion from 'size_t' to 'unsigned int', p
ossible loss of data [C:\RainLexer\RainLexer\RainLexer.vcxproj]
But it does "build". Let me test it with 32bit and 64bit Notepad++ and see what happens.
this is because I used their declaration for Lex and Fold functions which use types from Sci_Position.h, I didn't modified definitions for these function.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

oZone wrote: November 18th, 2019, 3:34 pm this is because I used their declaration for Lex and Fold functions which use types from Sci_Position.h, I didn't modified definitions for these function.
Seems like it works in both 32bit and 64bit versions of Notepad++. This is a huge help!!

Any way you can see to safely eliminate those "warnings"?
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 3:37 pm Seems like it works in both 32bit and 64bit versions of Notepad++. This is a huge help!!

Any way you can see to safely eliminate those "warnings"?
Try this
File removed
Last edited by oZone on November 18th, 2019, 3:46 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

Closer...

Code: Select all

* Building 32-bit RainLexer.
C:\RainLexer\RainLexer\Lexer.cpp(93,28): warning C4018:  '<': signed/unsigned mismatch [C:\RainLexer\RainLexer\RainLexe
r.vcxproj]
* Building 64-bit RainLexer.
C:\RainLexer\RainLexer\Lexer.cpp(93,28): warning C4018:  '<': signed/unsigned mismatch [C:\RainLexer\RainLexer\RainLexe
r.vcxproj]
* Signing binaries...
* Building installer.
* Signing installer.
* Build complete.

Press any key to continue . . .
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 3:41 pm Closer...

Code: Select all

* Building 32-bit RainLexer.
C:\RainLexer\RainLexer\Lexer.cpp(93,28): warning C4018:  '<': signed/unsigned mismatch [C:\RainLexer\RainLexer\RainLexe
r.vcxproj]
* Building 64-bit RainLexer.
C:\RainLexer\RainLexer\Lexer.cpp(93,28): warning C4018:  '<': signed/unsigned mismatch [C:\RainLexer\RainLexer\RainLexe
r.vcxproj]
* Signing binaries...
* Building installer.
* Signing installer.
* Build complete.

Press any key to continue . . .
Hopefully no more warnings
File removed
Last edited by oZone on November 23rd, 2019, 6:41 pm, edited 2 times in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by jsmorley »

Bingo!


1.png


I can't thank you enough. This is a huge help! I'll get a new version out shortly.
You do not have the required permissions to view the files attached to this post.
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.4.0 (syntax highlighter for Notepad++)

Post by oZone »

jsmorley wrote: November 18th, 2019, 3:49 pm I can't thank you enough. This is a huge help! I'll get a new version out shortly.
You're welcome.
I did this for practice.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.5.0 (syntax highlighter for Notepad++)

Post by jsmorley »

oZone wrote: November 18th, 2019, 3:57 pm You're welcome.
I did this for practice.
I'm really glad to have this ugliness behind us.. Thanks again!

https://forum.rainmeter.net/viewtopic.php?f=127&t=6336&p=40071#p40071
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

Re: RainLexer 2.5.0 (syntax highlighter for Notepad++)

Post by oZone »

I wanted to highlight numbers, so I tried to implement it. It's not perfect but it works.

I did this mainly for myself, I wanted to completely rewrite lex function, but because of IRL stuff I don't have time.
I hope someone may find this useful.

Other changes are:
1) Updated 3rd-party files to latest available
2) Rafactor code to use

files removed
Zip file contains pre-built DLL files, modified RainLexer.xml and of course source code.
Last edited by oZone on November 27th, 2019, 7:09 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 2.5.0 (syntax highlighter for Notepad++)

Post by jsmorley »

oZone wrote: November 23rd, 2019, 7:49 pm I wanted to highlight numbers, so I tried to implement it. It's not perfect but it works.

I did this mainly for myself, I wanted to completely rewrite lex function, but because of IRL stuff I don't have time.
I hope someone may find this useful.

Other changes are:
1) Updated 3rd-party files to latest available
2) Rafactor code to use plugin template

Zip file contains pre-built DLL files, modified RainLexer.xml and of course source code.

Yeah, I think the number highlighting might need some more work at some point. I wonder if you could do the 1) and 2) stuff separately so I can get them in?