aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers
AgeCommit message (Collapse)AuthorFilesLines
2020-06-02Fixed improper cast in gcc-4.8.mitchell1-1/+1
2020-05-26Added SCI_PRIVATELEXERCALL API for retrieving the style number of a style name.mitchell1-3/+9
2020-04-21Backport: Feature [feature-requests:1346]. Add lexer.as.comment.character ↵Dejan Budimir1-1/+9
property to change comment character. Backport of changeset 8155:b89853508137.
2020-04-13Backport: Use const, constexpr, noexcept, & nullptr. Reduce headers and use ↵Neil1-42/+39
C++ versions. Replace ctype functions with lexlib functions that don't fail for non-ASCII. Backport of changeset 8148:64c6264b38d2.
2020-04-13Backport: Hide implementation of EscapeSequence and use const. Add tests for ↵Neil1-13/+12
escape sequences. Backport of changeset 8144:ce9d95250569.
2020-04-13Backport: Replace islower function and add tests for JavaScript regular ↵Neil1-3/+2
expressions. Backport of changeset 8143:a5eb440dc1e2.
2020-04-13Backport: Use constexpr and noexcept, reduce headers and use C++ versions, ↵Neil1-12/+10
harmonize types a bit. Backport of changeset 8142:a823c9510148.
2020-04-07Backport: Bug [#1624]. Fix brace styling in Batch lexer so that brace ↵Yury Dubinsky1-381/+454
matching works. Bug [#1906], Bug [#1997], and Bug [#2065] also fixed. Backport of changeset 8126:57002ee9dccf.
2020-04-06Backport: Bug [#2164]. Change line comments to terminate at next line start.Neil1-1/+1
This changes the lexing test results a lot since line comments are common. Backport of changeset 8123:3f7f9e476cfb.
2020-03-29Forgot a 0-to-1 conversion in r8093.mitchell1-1/+1
2020-03-28Switch to 1-based style numbers internally in Lua.mitchell1-6/+6
2020-03-26Backport: Fix spelling mistakes.Neil1-3/+3
Backport of changeset 8028:78a688809e75.
2020-03-26Switch to 1-based indices in Lua.mitchell1-8/+8
The only external, 3rd party lexers that would be affected are those implementing their own fold functions.
2020-03-11LexLPeg now implements DefaultLexer and NameOfStyle().mitchell1-62/+56
The SCI_PRIVATELEXERCALL(styleNum, name) API is no longer supported.
2020-03-10Fixed LexLPeg reporting of known lexers on Win32.mitchell1-5/+7
2020-03-07LexLPeg can now report a list of known lexers via SCI_PRIVATELEXERCALL.mitchell1-57/+89
2020-03-06More LexLPeg refactoring, including a safer Lua state.mitchell1-82/+133
Do not load either `io` (Lua 5.1) or `package` modules and updated lexer.lua functions to utilize safer versions of `require()` and `package.searchpath()`. Also support ';'-separated paths for lexers via existing `lexer.lpeg.home` property or new SCI_LOADLEXERLIBRARY API. Refactor to use property constants and class methods for property setting.
2020-03-06More LexLPeg refactoring.mitchell1-70/+92
Added stack assertions and append traceback to error messages.
2020-03-06Formatted LexLPeg.cxx.mitchell1-694/+701
2020-03-05Refactored LexLPeg.mitchell1-318/+343
Style property settings are now case-sensitive.
2020-03-04Modernize LexLPeg.mitchell1-58/+54
2020-01-06More synchronizing LongTerm3 with default.mitchell1-5/+7
Ideally this covers anything missed during the backport process.
2020-01-05Added Sci::make_unique() and Sci::size() for better compatibility with the ↵mitchell1-1/+1
default branch. std::make_unique() is c++14 and std::size() is c++17.
2020-01-05Synchronizing LongTerm3 with default.mitchell1-14/+14
Ideally this covers anything missed during the backport process.
2020-01-04Backport: Feature [feature-requests:#1328] Handle CRLF in ↵Mark Reay1-3/+6
SCE_RAKU_COMMENTLINEs and HEREDOCs style termination. Backport of changeset 7915:4bdfd413a442.
2020-01-04Backport: Added Raku lexer and style properties and example filesmitchell1-0/+1602
Backport of changeset 7900:bcb95162cd06.
2020-01-04Backport: Define ILexerWithIdentity with methods for retrieving name, ID, ↵mitchell24-54/+179
and property values. Implement ILexerWithIdentity on object lexers. Implement ILexerWithIdentity on LexerSimple wrapper for function lexers. Backport of changeset 7870:6ffcbd42288c, but with a new interface compatible with ILexer, not ILexer5.
2019-12-13Backport: Add or fix file name comments.Neil12-7/+12
Backport of changeset 7838:c924b214edf5.
2019-12-13Backport: Fix incorrect comments.Neil1-2/+2
Backport of changeset 7837:89f1e0f361f0.
2019-12-31Updated copyright year for lexlua-specific bits of LongTerm3.mitchell1-1/+1
2019-11-21Backport: Feature [feature-requests:#1326] Recognize squiggly heredocs.Zufu Liu1-3/+3
Backport of changeset 7770:258438d0bd8a.
2019-11-17Backport: Feature [feature-requests:#1299] Make work for case sensitive mode.Zufu Liu1-1/+2
Backport of changeset 7766:11b48094a651.
2019-11-17Backport: Feature [feature-requests:#1320] Fix tag classification when '-' ↵Zufu Liu1-1/+4
present. Caused by conflict with [feature-requests:#1299]. Backport of changeset 7765:6e109af6b450.
2019-12-06Backport: Feature [feature-requests:#1324] Add Hollywood lexer.mitchell1-0/+512
Backport of changeset 7761:abba8b1c6f4a.
2019-11-04Backport: Bug [#1933]. Fix highlighting of lines longer than 1024 characters.Neil1-9/+9
Backport of changeset 7759:56b648377c23.
2019-11-02Backport: Feature [feature-requests:#1299] Treat custom tags from HTML5 as ↵Zufu Liu1-0/+14
known tags. These contain "-" like "custom-tag". Backport fo changeset 7757:66cf17769808.
2019-11-02Backport: Rearrange code to allow more cases.Neil1-1/+2
Backport of changeset 7756:89efa549e9c7.
2019-11-02Backport: Format code for space before class.Zufu Liu1-0/+1
Backport of changeset 7755:1e3b4d4a32aa.
2019-11-02Backport: Feature [feature-requests:#1320] Fix non-alphabetic characters in ↵Neil1-1/+2
unknown tags. Backport of changeset 7751:5f4c6b38cb16.
2019-10-19Backport: Bug [#2128]. Add fold.xml.at.tag.open option to fold tags at the ↵Zufu Liu1-3/+24
start of the tag instead of the end. Backport of changeset 7708:54e1c9a68c7c.
2019-10-13Backport: Added const from patch on bug #2131.Zufu Liu1-1/+1
Backport of changeset 7705:620c84903b32.
2019-10-13Backport: Bug [#2131]. Turn off whitespace fold flag when fold.compact=0.Zufu Liu1-1/+2
Backport of changeset 7704:93f76420e730.
2019-09-28Backport: Bug [#2129]. Fix crash with 'interface=none' comment.Neil1-1/+2
Backport of changeset 7692:88e3b32fc9c0.
2019-09-26Backport: Bug [#2121]. Support indented here-docs.SilverDirk1-0/+27
Backport of changeset 7689:f32c4f7293a7.
2019-09-26Backport: Feature [feature-requests:#1306] Fold qw arrays.Zufu Liu1-0/+6
Backport of changeset 7688:72933772703e.
2019-06-25Backport: Avoid cppcheck warnings by using same names in declaration and ↵Neil1-2/+2
definition. Backport of changeset 7607:5c931c0c9458.
2019-06-25Backport: Bug [#2098]. Remove unused variable.Zufu Liu1-2/+1
Backport of changeset 7606:dc0272dd104f.
2019-06-25Backport: Bug [#2098]. Fix single quoted strings where '" (quote, double ↵Zufu Liu1-1/+1
quote) was seen as continuing the string. Backport of changeset 7605:bd1bf8e13d33.
2019-06-25Backport: Bug [#2112]. Matlab lexer now treats keywords as case-sensitive.Zufu Liu1-1/+1
Backport of changeset 7604:f065b241925e.
2019-07-11Backport: Feature [feature-requests:#1295]. Lexer added for DataFlex.mitchell1-0/+614
Backport of changeset 7569:ab69548334b7, but with custom `_strnlen` function since `strnlen` is not part of the C or C++ standard.