Skip to content

Commit 49a46b5

Browse files
authored
feat: add S-record highlighting (#41)
See: https://en.wikipedia.org/wiki/SREC_(file_format)
1 parent c2ed0fa commit 49a46b5

File tree

5 files changed

+105
-0
lines changed

5 files changed

+105
-0
lines changed

β€Žtemplates/editor.teraβ€Ž

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,27 @@ whiskers:
619619
<WordsStyle name="Hit Word" styleID="4" fgColor="{{ red.hex }}" bgColor="404357" fontName="" fontStyle="0" fontSize="" />
620620
<WordsStyle name="Current line background colour" styleID="6" bgColor="404357" fontSize="" fontStyle="0" />
621621
</LexerType>
622+
<LexerType name="srec" desc="S-Record" ext="">
623+
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
624+
<WordsStyle name="RECSTART" styleID="1" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="1" fontSize="" />
625+
<WordsStyle name="RECTYPE" styleID="2" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="1" fontSize="" />
626+
<WordsStyle name="RECTYPE_UNKNOWN" styleID="3" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="2" fontSize="" />
627+
<WordsStyle name="BYTECOUNT" styleID="4" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
628+
<WordsStyle name="BYTECOUNT_WRONG" styleID="5" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="0" fontSize="" />
629+
<WordsStyle name="NOADDRESS" styleID="6" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
630+
<WordsStyle name="DATAADDRESS" styleID="7" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
631+
<WordsStyle name="RECCOUNT" styleID="8" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
632+
<WordsStyle name="STARTADDRESS" styleID="9" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
633+
<WordsStyle name="ADDRESSFIELD_UNKNOWN" styleID="10" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="" fontSize="" />
634+
<!-- EXTENDEDADDRESS 11 N/A -->
635+
<WordsStyle name="DATA_ODD" styleID="12" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
636+
<WordsStyle name="DATA_EVEN" styleID="13" fgColor="{{ subtext0.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
637+
<WordsStyle name="DATA_UNKNOWN" styleID="14" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
638+
<WordsStyle name="DATA_EMPTY" styleID="15" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
639+
<WordsStyle name="CHECKSUM" styleID="16" fgColor="{{ teal.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="0" fontSize="" />
640+
<WordsStyle name="CHECKSUM_WRONG" styleID="17" fgColor="{{ crust.hex }}" bgColor="{{ maroon.hex }}" fontName="" fontStyle="1" fontSize="" />
641+
<WordsStyle name="GARBAGE" styleID="18" fgColor="{{ red.hex }}" bgColor="{{ base.hex }}" colorStyle="1" fontName="" fontStyle="2" fontSize="" />
642+
</LexerType>
622643
<LexerType name="erlang" desc="Erlang" ext="">
623644
<WordsStyle name="DEFAULT STYLE" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
624645
<WordsStyle name="DEFAULT COMMENT" styleID="1" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />

β€Žthemes/catppuccin-frappe.xmlβ€Ž

Lines changed: 21 additions & 0 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: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žthemes/catppuccin-macchiato.xmlβ€Ž

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

β€Žthemes/catppuccin-mocha.xmlβ€Ž

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

0 commit comments

Comments
Β (0)