Skip to content

Commit 96b5e5c

Browse files
authored
feat: add Intel iHex data highlighting (#74)
This is just like Motorola S-Record. Almost identical highlight groups. No idea why the didn't just combine them. I went ahead and cleaned up some bold styles in the previous srec at the same time. So both of these formats match now.
1 parent 7ffbe9d commit 96b5e5c

File tree

5 files changed

+135
-30
lines changed

5 files changed

+135
-30
lines changed

templates/editor.tera

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,17 +690,17 @@ whiskers:
690690
<WordsStyle name="Current line background colour" styleID="6" bgColor="{{ line.hex }}" />
691691
</LexerType>
692692
<LexerType name="srec" desc="S-Record" ext="">
693-
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
694-
<WordsStyle name="RECSTART" styleID="1" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="1" fontSize="" />
695-
<WordsStyle name="RECTYPE" styleID="2" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="1" fontSize="" />
696-
<WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="2" fontSize="" />
693+
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="0" fontName="" fontStyle="2" fontSize="" />
694+
<WordsStyle name="RECSTART" styleID="1" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
695+
<WordsStyle name="RECTYPE" styleID="2" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
696+
<WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
697697
<WordsStyle name="BYTECOUNT" styleID="4" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
698-
<WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="0" fontSize="" />
698+
<WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
699699
<WordsStyle name="NOADDRESS" styleID="6" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
700700
<WordsStyle name="DATAADDRESS" styleID="7" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
701701
<WordsStyle name="RECCOUNT" styleID="8" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
702702
<WordsStyle name="STARTADDRESS" styleID="9" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
703-
<WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="" fontSize="" />
703+
<WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
704704
<!-- EXTENDEDADDRESS 11 N/A -->
705705
<WordsStyle name="DATA_ODD" styleID="12" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
706706
<WordsStyle name="DATA_EVEN" styleID="13" fgColor="{{ subtext0.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
@@ -710,6 +710,27 @@ whiskers:
710710
<WordsStyle name="CHECKSUM_WRONG" styleID="17" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
711711
<WordsStyle name="GARBAGE" styleID="18" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
712712
</LexerType>
713+
<LexerType name="ihex" desc="Intel HEX" ext="">
714+
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="0" fontName="" fontStyle="2" fontSize="" />
715+
<WordsStyle name="RECSTART" styleID="1" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
716+
<WordsStyle name="RECTYPE" styleID="2" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
717+
<WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
718+
<WordsStyle name="BYTECOUNT" styleID="4" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
719+
<WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
720+
<WordsStyle name="NOADDRESS" styleID="6" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
721+
<WordsStyle name="DATAADDRESS" styleID="7" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
722+
<!-- RECCOUNT 8 N/A -->
723+
<WordsStyle name="STARTADDRESS" styleID="9" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
724+
<WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
725+
<WordsStyle name="EXTENDEDADDRESS" styleID="11" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
726+
<WordsStyle name="DATA_ODD" styleID="12" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
727+
<WordsStyle name="DATA_EVEN" styleID="13" fgColor="{{ subtext0.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
728+
<WordsStyle name="DATA_UNKNOWN" styleID="14" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
729+
<WordsStyle name="DATA_EMPTY" styleID="15" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
730+
<WordsStyle name="CHECKSUM" styleID="16" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
731+
<WordsStyle name="CHECKSUM_WRONG" styleID="17" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
732+
<WordsStyle name="GARBAGE" styleID="18" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
733+
</LexerType>
713734
<LexerType name="tex" desc="TeX" ext="">
714735
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
715736
<WordsStyle name="SPECIAL" styleID="1" fgColor="{{ subtext0.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />

themes/catppuccin-frappe.xml

Lines changed: 27 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/catppuccin-latte.xml

Lines changed: 27 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)