News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

NSIS lexer

Started by sethjackson, March 05, 2006, 08:15:37 PM

Previous topic - Next topic

sethjackson

Hi I've been working on a NSIS lexer (which I will submit to the tracker as soon as I solve this problem).

So the problem is this.

Code (xml) Select

<!-- Variables -->
                        <Set index="1"
                            value="$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $R0 $R1 $R2 $R3 $R4 $R5 $R6 $R7
                                   $R8 $R9 $\t $\" $\' $\` $VARNAME $0, $INSTDIR $OUTDIR $CMDLINE
                                   $LANGUAGE $PROGRAMFILES $COMMONFILES $DESKTOP $EXEDIR ${NSISDIR}
                                   $WINDIR $SYSDIR $TEMP $STARTMENU $SMPROGRAMS $SMSTARTUP
                                   $QUICKLAUNCH $DOCUMENTS $SENDTO $RECENT $FAVORITES $MUSIC
                                   $PICTURES $VIDEOS $NETHOOD $FONTS $TEMPLATES $APPDATA $PRINTHOOD
                                   $INTERNET_CACHE $COOKIES $HISTORY $PROFILE $ADMINTOOLS $RESOURCES
                                   $RESOURCES_LOCALIZED $CDBURN_AREA $HWNDPARENT $PLUGINSDIR
                                   $$ $\r $\n"/>


These are the NSIS variables. However I have one small problem. This right here.

Code (xml) Select

$\"


The lexer will not load because of this variable. How do I fix it so the lexer will load and this variable is in the list?

sethjackson

Woohoo I got it. :D

Code (xml) Select

<!-- Variables -->
                        <Set index="1"
                            value="$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $R0 $R1 $R2 $R3 $R4 $R5 $R6 $R7
                                   $R8 $R9 $\t $\&quot; $\' $\` $VARNAME $0, $INSTDIR $OUTDIR $CMDLINE
                                   $LANGUAGE $PROGRAMFILES $COMMONFILES $DESKTOP $EXEDIR ${NSISDIR}
                                   $WINDIR $SYSDIR $TEMP $STARTMENU $SMPROGRAMS $SMSTARTUP
                                   $QUICKLAUNCH $DOCUMENTS $SENDTO $RECENT $FAVORITES $MUSIC
                                   $PICTURES $VIDEOS $NETHOOD $FONTS $TEMPLATES $APPDATA $PRINTHOOD
                                   $INTERNET_CACHE $COOKIES $HISTORY $PROFILE $ADMINTOOLS $RESOURCES
                                   $RESOURCES_LOCALIZED $CDBURN_AREA $HWNDPARENT $PLUGINSDIR
                                   $$ $\r $\n"/>


I used &quot; instead of ". DOH! I'm going to post the NSIS lexer to the tracker soon.


killerbot

a great job from our lexer expert once again.


Does anyone have a "SethLexer"  ?  :lol: :lol: :lol: :lol:

takeshimiya

Quote from: killerbot on March 06, 2006, 07:32:27 AM
a great job from our lexer expert once again.


Does anyone have a "SethLexer"  ?  :lol: :lol: :lol: :lol:

lol, I'm writting one :lol:

sethjackson

#5
 :lol: :lol:

BTW Takeshi do you have a FreeBasic lexer somewhere? Otherwise....  :lol:

NSIS lexer is in SVN HEAD now. Yay! :D

takeshimiya

Quote from: sethjackson on March 06, 2006, 05:57:22 PM
:lol: :lol:

BTW Takeshi do you have a FreeBasic lexer somewhere?
Yes, long ago.
But now I'm writting the SethLexer, which is better. :)

sethjackson

I can't wait for the SethLexer.  :lol: Umm are you going to submit the FreeBasic lexer to the tracker?

takeshimiya

Quote from: sethjackson on March 06, 2006, 10:50:37 PM
I can't wait for the SethLexer.  :lol: Umm are you going to submit the FreeBasic lexer to the tracker?
Of course, I'm just thinking if it's better to merge with VB/VBScript/PowerBasic lexers or left each alone.

sethjackson

Umm I think it would be better to have them seperate.....  :)

EDIT:

That is how SciTE does it.

thomas

We should also change the key binding for "replace" to Ctrl-H and always open Code::Blocks in a unergonomic default size. That's what SciTE does, too.

Oh, and we should not show line numbers, no matter how often the user enables that option :lol:
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

sethjackson

Quote from: thomas on March 06, 2006, 11:08:21 PM
We should also change the key binding for "replace" to Ctrl-H and always open Code::Blocks in a unergonomic default size. That's what SciTE does, too.

Oh, and we should not show line numbers, no matter how often the user enables that option :lol:

:lol: :lol:

Not exactly what I meant...... Anyways I still think the *Basic lexers should be seperate.

takeshimiya

Quote from: thomas on March 06, 2006, 11:08:21 PM
We should also change the key binding for "replace" to Ctrl-H and always open Code::Blocks in a unergonomic default size.
The keybindings are user-configurable, and the default size too. Don't blame for free.

Quote from: thomas on March 06, 2006, 11:08:21 PM
Oh, and we should not show line numbers, no matter how often the user enables that option :lol:
I always have line numbers on in SciTE, it's also a setting. Don't blame for free.

Quote from: sethjackson on March 06, 2006, 10:56:38 PM
Umm I think it would be better to have them seperate.....  :)
EDIT:
That is how SciTE does it.
AFAIK, no, it's the opposite. If you open the SciTE vb lexer, you'll find in the same file lexers for: VB, VBScript, and VB.NET, among others.

sethjackson

I meant FreeBasic is seperate from VB, which is seperate from BlitzBasic etc...... Yeah the VB stuff is combined. Who uses VB anyways?

takeshimiya

Quote from: sethjackson on March 06, 2006, 11:36:21 PM
I meant FreeBasic is seperate from VB, which is seperate from BlitzBasic etc...... Yeah the VB stuff is combined. Who uses VB anyways?
Me not, but the other day, the autor of the FreeBasic IDE went here in the forum, so no language (nor editor) wars please.