Skip to content

Integrate lexers for several hex file formats#1257

Closed
marcows wants to merge 3 commits intonotepad-plus-plus:masterfrom
marcows:hex-lexers
Closed

Integrate lexers for several hex file formats#1257
marcows wants to merge 3 commits intonotepad-plus-plus:masterfrom
marcows:hex-lexers

Conversation

@marcows
Copy link
Copy Markdown
Contributor

@marcows marcows commented Dec 16, 2015

Fixes #1256.

Lexers for the integrated three file formats are all implemented in Scintilla since version 3.5.3.

Below example files for each file format, each with one block of valid and one of invalid content. The lexers will highlight specific errors such as wrong checksum. For "Intel HEX" folding is supported.

example.mot
https://en.wikipedia.org/wiki/SREC_(file_format)

S0040000FB00
S10500004D5459
S20600004D5468F0
S30A00004D54686400110077
S5030003F9
S604000003F8
S70500041234B0
S804000412E5
S9030004F8

S403ABCD84
S5040003F900
S0060000FB00
S0040000FB0000
S10500004D545A

example.hex
https://en.wikipedia.org/wiki/Intel_HEX

:0B0010006164647265737320676170A7
:00000001FF
:020000021200EA
:0400000300003800C1
:02000004FFFFFC
:04000005000000CD2A

:02000006FFFFFA
:030000021200E9
:020000021200EA00
:030000021200E900
:0B0010006164647265737320676170A6

example.tek
https://en.wikipedia.org/wiki/Tektronix_extended_HEX

%1261F8000000400A00
%0E81E800000000

%0E31E800000005
%1061D8000000400A00
%1261F8000000400A001234
%0E81E800000001

@Cyrillev91
Copy link
Copy Markdown
Contributor

Yes, it's a good idea.
pr1257_srec
pr1257_intelhex
pr1257_tek

Included in Scintilla since version 3.5.3.
Included in Scintilla since version 3.5.3.
Included in Scintilla since version 3.5.3.
@donho donho self-assigned this Feb 24, 2017
@donho donho added the accepted label Feb 24, 2017
@donho donho added this to the 7.x (master) milestone Feb 24, 2017
@donho donho closed this in 6b6b812 Feb 25, 2017
@marcows marcows deleted the hex-lexers branch February 28, 2017 10:22
bahusoid pushed a commit to bahusoid/notepad-plus-plus that referenced this pull request Mar 20, 2017
Integrate Motorola S-Record lexer.
Integrate Intel HEX lexer.
Integrate Tektronix extended HEX lexer.

Fixes notepad-plus-plus#1256, closes notepad-plus-plus#1257
iczelia pushed a commit to iczelia/notepad-plus-plus that referenced this pull request Jan 17, 2021
Integrate Motorola S-Record lexer.
Integrate Intel HEX lexer.
Integrate Tektronix extended HEX lexer.

Fixes notepad-plus-plus#1256, closes notepad-plus-plus#1257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants