From 5963a15d69f6c87a3f1690398c1827669e1bfb61 Mon Sep 17 00:00:00 2001 From: Markus Heidelberg Date: Mon, 29 Dec 2014 14:28:14 +1100 Subject: S-Record lexer: add future-proof highlighting for unknown record types An S4 record for example, which is not defined in the S-Record specification, will now be highlighted until record end (checksum) instead of aborting after the "byte count" field. The former behaviour looked a bit half-baked. Since the size of the address field is unknown, the address and data fields are highlighted with the same style in the new state SCE_SREC_DATA_UNKNOWN. Alternating styles (ODD/EVEN) for readability of the data field of valid record types are not applied. --- include/Scintilla.iface | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 30593426e..70b46e0d4 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -4563,6 +4563,8 @@ val SCE_SREC_DATA_ODD=9 val SCE_SREC_DATA_EVEN=10 val SCE_SREC_CHECKSUM=11 val SCE_SREC_CHECKSUM_WRONG=12 +val SCE_SREC_ADDRESSFIELD_UNKNOWN=13 +val SCE_SREC_DATA_UNKNOWN=14 # Events -- cgit v1.2.3