Menu

#1096 [PATCH] Lexer for Tektronix extended HEX file format

Committed
closed
5
2015-01-19
2015-01-06
danselmi
No
1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-01-07

    Changes should be made to Scintilla.iface, not SciLexer.h as it is generated from Scintilla.iface.

    SCE_HEX_RECTYPE_UNKNOW needs to end with 'N' to make sense and match others.

    Appears to be based on previous version as the patch doesn't apply cleanly:

    Command Error

    abort: patch failed to apply

    Hunk #1 succeeded at 64 with fuzz 1 (offset 11 lines).
    Hunk #4 FAILED at 776
    1 out of 4 hunks FAILED -- saving rejects to file lexers/LexHex.cxx.rej

    [Code: 255]

     
  • danselmi

    danselmi - 2015-01-07

    here the requested changes

     
  • Neil Hodgson

    Neil Hodgson - 2015-01-07
    • labels: --> scintilla, lexer, thex
    • assigned_to: Neil Hodgson
    • Group: Completed --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2015-01-07

    SCLEX_THEX needed to be added to Scintilla.iface. Committed with that addition as [e2f615].

     

    Related

    Commit: [e2f615]

  • Markus Heidelberg

    Cool, how fast this new lexer got adpoted and extended. Feeling responsible as the original author of this module, I will review the patch. Tomorrow if I get to it.

    After a first quick look:
    In the documentation of the SRecord project, another file format named "Textronix HEX" is described. So I would suggest naming this lexer and related functions/symbols "tehex" instead of "thex".

     
  • Markus Heidelberg

    Just for reference an example .tek file.

     
  • Neil Hodgson

    Neil Hodgson - 2015-01-19
    • status: open --> closed
     

Log in to post a comment.