aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers
AgeCommit message (Collapse)AuthorFilesLines
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.
2014-12-17Highlights doc comment keywords; has separate styles for input, output, andNeil1-68/+137
inout ports; and fixes a bug in highlighting numbers. From Haimag Ren.
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-09Feature [feature-requests:#1091]. Lexer for Motorola S-Record.Neil1-0/+360
From Markus Heidelberg.
2014-11-28LexCPP: Also fold on square bracketsColomban Wendling1-2/+2
This allows to fold on array literals for languages like JavaScript that use square brackets to declare array literals. This should not change much for languages that only use square brackets for array indexation as the large majority of the time the open and close brackets are placed on the same line in these cases.
2014-11-29Add a missing comma to separate word list decriptions.rel-3-5-2Neil1-1/+1
2014-11-25Bug [#1420]. CoffeeScript: Describe existing secondary keyword setsColomban Wendling1-0/+3
2014-11-25Bug [#1420]. CoffeeScript: Drop code that doesn't apply to CoffeeScriptColomban Wendling1-166/+9
Drop obsolete code that was copied from LexCPP but that is not relevant or even valid for CoffeeScript. Closes #1420.
2014-10-14Bug [#1664]. Fix folding of "block" keyword.Neil1-1/+2
From danselmi.
2014-09-06Support the q-quote operator as SCE_SQL_QOPERATOR.Neil1-1/+31
From Michael Staszewski.
2014-09-03Remove unused function.Neil Hodgson1-5/+0
2014-09-03Feature [feature-requests:#1071]. BibTeX lexer added.Neil1-0/+315
From Sergiu Dotenco and danselmi.
2014-09-03Normalise header inclusion order.Neil1-2/+2
2014-08-22Bug [#613]. Fix folding when "component' before name.Neil1-13/+37
From danselmi.
2014-08-20Bug [#1527]. Support block comments in VHDL.Neil1-11/+65
From danselmi.
2014-08-09Added lexer for registry files.Neil1-0/+416
From nkmathew.
2014-08-01Rust: Slightly refactor/comment the number literal scanning.SiegeLord1-12/+25
One change introduced by this is that the malformed literal is detected a little earlier in some cases than before.
2014-08-01Support transpose character after {} operatorJohn Donoghue1-1/+4
* lexers/LexMatlab.cxx (ColouriseMatlabOctaveDoc): add check in default state for '}' to allow transpose.
2014-07-29Rust: Highlight byte-string literals.SiegeLord1-22/+42
This adds support for two new string literals and one new string literal, corresponding to the existing versions of these. Compared to the originals, the new literals have slightly different escapes and are ASCII only. I've decided to simply add flags to the existing scanners to handle them. New styles had to be added to handle the line spanning string literals. The byte character style was added for consistency.
2014-07-29Rust: Allow escaping naked CR in strings.SiegeLord1-1/+1
2014-07-29Rust: Update hashbang comment syntax.SiegeLord1-1/+1
Hashbang comments that start with the following 3 characters: #![ do not count as hashbang comments, but rather some other syntax (inner attribute).
2014-07-30Ruby: fix theoretical missing assignment and remove dead oneColomban Wendling1-1/+1
2014-07-29Allow identifier suffix = in Ruby symbol literalsColomban Wendling1-1/+6
See comments in bug [#1627] for some details.
2014-07-29Allow global/class/instance variables as Ruby symbol literalsColomban Wendling1-0/+25
See comments in bug [#1627] for some details.
2014-07-29Bug [#1627]. Allow FIDs as Ruby symbol literalsColomban Wendling1-1/+5
2014-07-29Fixing previous change for mako to be type-safe.Neil1-1/+1
2014-07-26Bug [#1622]. Don't crash with ## comments in Mako.Neil1-1/+7
From John Ehresman.
2014-07-16Bug [#1622]. Don't crash with SGML after a Mako comment.Neil1-1/+3
2014-07-08Feature [feature-requests:#1053]. Add a block comment state.Neil1-0/+7