aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers
AgeCommit message (Collapse)AuthorFilesLines
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
2014-06-22Add missing comma.XhmikosR1-1/+1
2014-06-19Bug [#1614]. Don't crash on incomplete macro definition "#define x(".Neil Hodgson1-1/+3
2014-06-02Bug [#1605]. Fix fold matching problem caused by "<<<".Neil1-1/+10
From Kein-Hong Man.
2014-05-31Safer handling of "#define X" which caused fault in debug build with Visual C++.Neil1-1/+1
2014-05-24Header include statements are now in a standardised order with that orderNeil9-11/+11
defined in scripts/HeaderOrder.txt.
2014-05-24Removing style byte indicators.Neil4-11/+9
2014-05-24Removing use of style byte indicator in Scriptol lexer.Neil1-31/+1
2014-05-24Removing use of style byte indicator in PostScript lexer.Neil1-22/+6
2014-05-24Moving declaration inside loop to prevent a 'scope can be reduced' warning.Neil1-2/+1
2014-05-24Fix raw string recognition so that R"xxx(blah)xxx" is styled as SCE_C_STRINGRAW.Neil1-3/+11