Menu

#389 Code/patch:Batch, Variable and Extended Argument.

Initial
open
3
2022-04-09
2006-12-01
Anonymous
No

'LexOthers.cxx' with better Environment Variable and Extended Argument handling.
Moved Variable parsing from main(2x) into its own function.
Includes 'bat_test.properties' file + *.CMD color test file. (Diff included for good measures)
Not sure tho if this has good compatible with old BAT files.

O, variable support for in extended identifiers not included. maybe later.

hope its useful
Cheers

Discussion

  • Nobody/Anonymous

    LexOthers.cxx.zip

     
  • Neil Hodgson

    Neil Hodgson - 2006-12-01
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson

    Neil Hodgson - 2006-12-10
    • labels: --> Scintilla
    • priority: 5 --> 3
     
  • Neil Hodgson

    Neil Hodgson - 2006-12-10

    Logged In: YES
    user_id=12579
    Originator: NO

    Changing existing symbols causes client code to break so should only be done for strong reasons so SCE_BAT_IDENTIFIER should not be changed to SCE_BAT_ENVIROMENT.
    The endPos argument to DosVarScan is never used so should be eliminated.
    There are warnings from the Borland compiler for "Conversion may lose significant digits" when calling IsExtArgChar, or IsAToZ with result of tolower so either declare these functions to take int arguments or use static_cast<char> as shown in ColouriseBatchLine.
    Otherwise it looks OK.

     
  • Nobody/Anonymous

    Logged In: NO

    Roger.
    (might take some time tho ...)

     
  • Nobody/Anonymous

    Logged In: NO

    Erm ... I should finish this some day.

    dropping in a additional ideas that might have some use.

    + “:::” at start of line/code, until next “:label“ command -> large comment block.
    - allowing for none code colored comment block(s)
    - “:::” should be preceded with a “goto “ command.
    ? could also be impended by targeting the “goto “ command(s) itself, until the next “:label”.

     
  • Zufu Liu

    Zufu Liu - 2022-04-09
    • labels: Scintilla --> Scintilla, lexilla, batch
    • Group: --> Initial
     

Log in to post a comment.