aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers
AgeCommit message (Collapse)AuthorFilesLines
2015-07-25Use Sci_PositionU/Sci_Position for arguments to functional lexers, folders, andNeil89-218/+218
comment recognizers to allow for future implementation of 64-bit positions.
2015-07-20Use Sci_Position when required to implement interfaces.Neil14-107/+107
2015-07-14Split LexOthers.cxx into separate files for each lexer: LexBatch, LexDiff,Neil7-1149/+1334
LexErrorList, LexMake, LexNull, and LexProps.
2015-07-06Upgrading Python to an object lexer that supports substyles.Neil1-73/+234
2015-05-29Fix warning from Visual C++.Neil1-1/+1
2015-05-21add support for protected regions, prevent styling and folding within ↵Joe Mueller1-53/+72
protected region, allow folding of protected region
2015-05-13Bug [#1724]. Fix folding of "selecttype" and "selectcase".Neil1-0/+1
From darmar.
2015-05-12Bug [#1719]. Fix #undef directive.Neil1-3/+2
2015-05-11Folder folds units declarations and fixes a case insensitivity bug with notNeil1-3/+4
treating "IS" the same as "is".
2015-05-04add support to fold interface definitionsJoe Mueller1-1/+3
2015-04-22Fix highlighting empty backquote strings (``) in cpp lexerJiří Techet1-1/+0
The sc.Forward() is performed once more at the end of the function and performing it here causes the second ` is skipped in ``. Probably caused by copy-pasting the code above and not realizing this one reads just a single character.
2015-04-08add code to support extended identifiersJoe Mueller1-1/+9
2015-03-29Fix handling of '+' and '-' in numbers.Neil1-4/+5
From Michael Staszewski.
2015-03-27Bug [#1642] Reverting change set 5455 which caused problems with highlighting ofNeil1-5/+2
braces within strings.
2015-03-18fix bug in fold.at.else processing, the code for "begin" that set ↵Joe Mueller1-3/+34
levelMinCurrent was missing. Add support for lexer.verilog.fold.preprocessor.else that behaves like fold.at.else only for preprocessor `else and `elseif directives.
2015-03-18fix bug where macro styling allowed '.', fix bug where macro styling could ↵Joe Mueller1-2/+2
carry over to the next line
2015-03-10fix problem where preprocessor fold code would incorrectly match ↵Joe Mueller1-1/+1
`endcelldefine with `if
2015-02-24Reindented file consistently with tabs using astyle.Neil1-187/+185
The file had become a mixture of tab indenting and space indenting. No other changes were made in this change set.
2015-02-24Bug [#1642]. Fixes a bug with some strings in TCL.Neil1-2/+6
From Markus Moser.
2015-02-19Implement lexer.cpp.verbatim.strings.allow.escapes.Neil Hodgson1-1/+8
2015-02-17fix bug where terminating whitespace character was not included in escaped ↵Joe Mueller1-3/+1
identifier
2015-02-17Reindented file consistently with 4 space indents using astyle -s4 -OHUKk3Neil1-410/+411
The file had become a mixture of tab indenting and space indenting amd the most common indentation was 4 spaces. No other changes were made in this change set.
2015-02-17Bug [#1697]. Allow folding of multiline comments in Ruby.Neil1-0/+24
2015-02-12fix problem with typdef class statements creating a fold point, expecting an ↵Joe Mueller1-3/+13
endclass statement
2015-02-09add support for escaped identifiersJoe Mueller1-1/+13
2015-02-10Fix hang in folding when document starts with "entity".Neil1-3/+4
From Vicente.
2015-01-30fix folding bugs with extern and pure virtual functions/tasks. fix folding ↵Joe Mueller1-1/+57
bugs with wait fork and disable fork statements.
2015-01-29fix problem with folding comments by re-folding the previous line as was ↵Joe Mueller1-1/+12
done in LexerModule::Fold
2015-01-24Fix a bug with the q-quote operator.Neil1-23/+27
From Michael Staszewski.
2015-01-22Feature [feature-requests:#1098]. Accept `is`/`us` integer suffixes instead ofNeil1-1/+3
`i`/`u`. From Mika Attila.
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-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 Heidelberg1-8/+12
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 Heidelberg1-14/+14
There exists a similar file format called "Textronix HEX", which would be the better candidate for this short name.
2015-01-08Feature [feature-requests:#1096]. Lexer added for Tektronix extended hex files.Neil1-0/+203
From danselmi.
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-05Add folding support for Intel HEX filesMarkus Heidelberg1-3/+57
Extended address records can be used as fold point for subsequent data records.
2014-12-30Add new lexer for Intel HEX file formatMarkus Heidelberg1-1/+282
2014-12-30S-Record lexer: rename states from SCE_SREC_.. to SCE_HEX_..Markus Heidelberg1-39/+39
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 Heidelberg1-12/+14
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.