aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers
AgeCommit message (Collapse)AuthorFilesLines
2020-05-23Backport: Fix some Doxygen-style comments to avoid Xcode warnings.Neil Hodgson1-2/+2
Backport of changeset 8258:932deba680b4.
2020-05-23Backport: Fix Doxygen-style comments that refer to parameters.Neil Hodgson1-2/+2
Backport of changeset 8257:e772839fa245.
2020-05-05Backport: Fixed bug where a single character line with a single character ↵Yury Dubinsky1-10/+15
line end continued state onto the next line. Backport of changeset 8231:ef4484697e91.
2020-05-01Backport: Make lambdas noexcept.Zufu Liu1-1/+1
Backport of changeset 8222:b11c7c0d7978.
2020-05-01Backport: Allow arbitrary length lines by using std::string instead of array.Neil1-16/+15
Backport of changeset 8218:253563c83103.
2020-05-01Backport: Add SCE_ERR_GCC_EXCERPT style for diagnostics introduced by GCC ↵Neil1-0/+18
9.0 like 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~ Backport of changeset 8217:2ea7e2f6a248.
2020-04-30Backport: Clean up - make local function static and remove code that has no ↵Zufu Liu1-3/+1
effect. Backport of changeset 8213:2714b74749f5.
2020-06-17Backport: Bug [#2019]. Fix buffer over-read with absolute reference.mitchell1-5/+4
Backport of changeset 8212:6d0ce3c92a13, but without lexilla tests.
2020-04-30Backport: Treat \n and \r\n line ends the same after operands by setting ↵Neil1-3/+1
style to comment. Backport of changeset 8210:6b6ecf724c71.
2020-06-10Revert previous commit.mitchell1-3/+1
2020-06-10Support American English "changable" style setting in LexerLPeg.mitchell1-1/+3
2020-06-06Fixed crash when LexerLPeg cannot find lexer.lua module.mitchell1-0/+2
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.