aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)AuthorFilesLines
2015-01-14Change log.Neil1-2/+4
2015-01-13fix bug in handling of comments, make some new features conditional on lexer ↵Joe Mueller1-19/+29
properties to preserve backwards compatibility
2015-01-13LexHex S-Record: use the required data field size for some highlightingMarkus Heidelberg1-29/+75
Equal to how it is already implemeted for the Intel HEX lexer. Specific record types do not use a data field, the checksum field directly follows the address field then. In these cases now the byte count field is also marked as wrong if its content is not what is to be expected for this record type. Also the checksum field is now fixed after the address field instead of allowing data field in between if the byte count is too big. Also simplify this code path for IHex to be equal to the Srec code.
2015-01-13LexHex: use SCE_HEX_RECTYPE_UNKNOWN also for Srec and IHexMarkus Heidelberg1-4/+22
2015-01-13Using size_t instead of unsigned int for conversions to UTF16 for 64-bitNeil4-22/+22
compatibility and to lessen the number of casts.
2015-01-11Change log.Neil1-0/+3
2015-01-11LexHex: add a default case for handling faulty states to all lexersMarkus Heidelberg1-0/+15
If the state variable is set to a state not used in this lexer, an endless loop would occur because Forward() is never invoked then.
2015-01-11LexHex: add a new state for garbage data after the recordMarkus Heidelberg3-8/+14
IHex and Srec just set to the DEFAULT state before, TEHex used the SCE_HEX_DATA_UNKNOWN state for garbage data, which is not the actual intention for this state.
2015-01-11LexHex Tektronix: use more address field types, not just data addressMarkus Heidelberg1-8/+30
Also use the new function for checking whether the record type is unknown.
2015-01-11LexHex: move general helper function up and add a prototypeMarkus Heidelberg1-17/+18
Even if it is only used in the Tektronix lexer.
2015-01-11LexHex Tektronix: use the dedicated helper function for getting the lengthMarkus Heidelberg1-1/+2
2015-01-11LexHex Tektronix: fix whitespace issues and remove unused leftover codeMarkus Heidelberg1-11/+14
Also clarify the intention of embracing the states in the format description.
2015-01-11LexHex: rename Tektronix extended HEX lexer from "thex" to "tehex"Markus Heidelberg4-19/+19
There exists a similar file format called "Textronix HEX", which would be the better candidate for this short name.
2015-01-11Support removed for Windows 95, 98, and ME.Neil4-94/+25
2015-01-10On Windows GDI, assume font names are encoded in UTF-8 and use wide characterNeil4-17/+30
calls to allow use of Asian font names.
2015-01-09Bug [#1679]. Extra warning.Neil1-0/+1
2015-01-08Feature [feature-requests:#1096]. Lexer added for Tektronix extended hex files.Neil5-1/+212
From danselmi.
2015-01-07Suppress new warning in cppcheck 1.68 in a lexer.Neil1-0/+1
2015-01-07Hide files created by Visual Studio Analyze.Neil1-0/+1
2015-01-06attempt to fix compile errors with different versions of g++ caused by ↵Joe Mueller1-4/+5
missing inclusion of algorithm header file.
2015-01-06modify LexVerilog.cxx to support coloring of inactive code due to ↵Joe Mueller1-142/+652
preprocessor commands
2015-01-07Avoid warning from cppcheck about leaking handle.Neil1-0/+1
2015-01-05Allocate is only called when no handle in constructor so assert that to avoidNeil1-0/+1
warning from cppcheck.
2015-01-05Check for non-NULL render target and avoid Coverity warning.Neil1-1/+1
2015-01-05Change log.Neil1-1/+2
2015-01-05Add folding support for Intel HEX filesMarkus Heidelberg1-3/+57
Extended address records can be used as fold point for subsequent data records.
2015-01-03Change log.Neil1-0/+4
2015-01-02Use gtk_clipboard_request_contents() instead of gtk_selection_convert() for ↵Jiří Techet1-2/+12
paste on GTK When compiling Scintilla on OS X with GTK2 backend (and GTK2 with Quartz backend), gtk_selection_convert() doesn't work. GtkClipboard seems to work fine though.
2014-12-30Lexer added for Intel hex files.Neil3-14/+21
2014-12-30Add new lexer for Intel HEX file formatMarkus Heidelberg2-1/+287
2014-12-30S-Record lexer: reorder lexer statesMarkus Heidelberg1-6/+6
Also temporarily add two gaps, which will be filled by a new lexer.
2014-12-30S-Record lexer: rename states from SCE_SREC_.. to SCE_HEX_..Markus Heidelberg2-55/+55
Preparation for adding a new lexer which uses mostly the same states.
2014-12-30S-Record lexer: extract reusable parts of helper functionsMarkus Heidelberg1-35/+60
CalcChecksum() takes a parameter to decide between one's or two's complement. The variable "cs" has been changed to "signed int" to simplifiy calculation of the two's complement with signed arithmetic instead of using bitwise operations, which would cause "overflow" warnings in Coverity without additional "& 0xFF" masking.
2014-12-29S-Record lexer: fix the description of the maximum data field digit countMarkus Heidelberg1-8/+8
500 was only true for S3 records with 32-bit address.
2014-12-29S-Record lexer: add future-proof highlighting for unknown record typesMarkus Heidelberg2-12/+16
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.
2014-12-29S-Record lexer: correctly count the characters of an invalid short lineMarkus Heidelberg1-8/+18
If the line only consisted of 3 digits (e.g. S12), then highlighting of the third one (first digit of the "count" field) was dependent on the content of the subsequent line. Now this digit is always highlighted as valid "byte count", independent on its value, if there is no further digit behind. The function return value can be negative now.
2014-12-27Change log.Neil1-0/+8
2014-12-22Avoid warning from cppcheck.Neil1-3/+2
2014-12-22Replace function UnicodeFromBytes with UnicodeFromUTF8 as they are exactly theNeil3-15/+48
same. Add unit tests for UnicodeFromUTF8.
2014-12-20Don't use bad value after failed call.Neil1-4/+8
2014-12-20Check for failure of SystemParametersInfo.Neil1-8/+9
2014-12-17More natural looping over visual attributes.Neil1-3/+3
2014-12-17Highlights doc comment keywords; has separate styles for input, output, andNeil4-68/+151
inout ports; and fixes a bug in highlighting numbers. From Haimag Ren.
2014-12-17Change log.Neil1-0/+4
2014-12-12LexBash: Empty heredoc delimiters can also be indentedColomban Wendling1-1/+2
2014-12-12LexBash: Only tabulations are allowed as prefix with `<<-` heredocColomban Wendling1-1/+1
Only tabulations are allowed to prefix the delimiter on indented here-documents, not any white space.
2014-12-12LexBash: Don't allow spaces between `<<` and `-` in a heredoc operatorColomban Wendling1-3/+6
`<<-` is an operator of itself, not two separate tokens `<<` and `-`. This fixes handling of delimiters starting with `-`, like this: cat<< -EOF ... -EOF
2014-12-16Feature [feature-requests:#1091]. S-Record lexer added on OS X.Neil Hodgson1-0/+4
2014-12-16When a text margin is displayed, for annotation lines, use the background colourNeil2-5/+17
of the base line. From Joe Mueller.
2014-12-12Prevent some static analyzer warnings.Neil1-0/+2