diff options
author | Markus Heidelberg <markus.heidelberg@web.de> | 2014-12-29 14:28:14 +1100 |
---|---|---|
committer | Markus Heidelberg <markus.heidelberg@web.de> | 2014-12-29 14:28:14 +1100 |
commit | 1604c5682d2f678405b87f688bc35ca1f129963f (patch) | |
tree | 2f24fde48ec4a56538d925f41d0259a9f0b83ada /include | |
parent | 2d7a1e5afcf2d130973be607860b6d679b2d82ed (diff) | |
download | scintilla-mirror-1604c5682d2f678405b87f688bc35ca1f129963f.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.iface | 2 |
1 files changed, 2 insertions, 0 deletions
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 |