aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers
AgeCommit message (Collapse)AuthorFilesLines
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.
2019-05-29Backport: Resolve some Core Guidelines warningsJad Altahan1-23/+23
Backport of changeset 7538:c237abdc7c4c.
2019-05-28Backport: Add folding for CMake 3 function/endfunctionJad Altahan1-2/+3
Backport of changeset 7537:03bbd7abb2f8.
2019-05-22Backport: Support for VB2017 bin literals & digit separatorsJad Altahan1-1/+5
Backport of changeset 7502:395c5832d38c.
2019-05-07Backport: Fix warnings from GCC 9 because of a deprecated ↵Neil1-0/+7
implicitly-declared operator= by explicitly implementing the operator=. Backport of changeset 7492:9e738e32ae45.
2019-05-27Backport: Feature [feature-requests:#1280]. Lexer added for X12.mitchell1-0/+341
Backport of changeset 7486:a99fa007805f, but with LexerX12::Terminator struct definition not having default values, which is a C++14 feature.
2019-03-29Backport: Remove inclusion of "CharacterCategory.h" where not needed and add ↵Neil3-2/+1
<vector> to LexHaskell as it will be needed for CharacterCategory additions. Backport of changeset 7390:917215fa3a96.
2019-03-23Backport: Simplified preprocessor conditional styling code, renamed 'active' ↵Neil1-33/+63
to 'inactive' as that is more correct, added comments and helper methods, removed lines that had no effect. Behaviour unaltered. Backport of changeset 7343:47c846cb9d17.
2019-03-23Backport: Fix warnings from MSVC Code Analysis.Neil1-30/+37
Backport of changeset 7328:521b1e23bfe2, but without C++17 std::size and `SymbolValue() = default` instead of `SymbolValue() noexcept = default`, since the latter causes a compile error.
2019-03-09Backport: Feature [feature-requests:#1268]. Improve the styling of numbers ↵Jad Altahan1-13/+7
in Nim Improvements for SCE_NIM_NUMBER. Backport of changeset 7310:3710c193b696.
2019-03-09Backport: Feature [feature-requests:#1265]. Common Intermediate Language ↵mitchell1-0/+404
(CIL) lexer. Backport of changeset 7283:aaeca7f7cf9d.
2019-02-02Backport: Feature [feature-requests:#1262]. Enhance raw string identifier ↵Jad Altahan1-1/+25
styling in Nim Adds property 'lexer.nim.raw.strings.highlight.ident'. Backport of changeset 7247:1eeda6575035.
2019-01-30Backport: Feature [feature-requests:#1261]. Enhance the styling of backticks ↵Jad Altahan1-4/+19
in Nim Backport of changeset 7244:a5c65813871a.