aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers
AgeCommit message (Collapse)AuthorFilesLines
2020-02-24lua: add `redrawtime` optionGeorgi Kirilov1-6/+17
Upper bound lexing time and cancel highlighting if it is exceeded.
2020-02-11lexers: fix TOML comments not being detectedRandy1-1/+1
`operator` variable matches "#", leaving nothing for the comments rule to match. Since "#" only marks comments in TOML, I just went ahead and removed the character from the `operator` token.
2020-02-11lexers: remove TOML indent errorRandy1-4/+0
According to the TOML github page[1], indentation can be tabs *and/or* spaces, so `indent_error` is removed. [1] https://github.com/toml-lang/toml#example
2020-02-10lexers: add git rebase lexerMarc André Tanner1-0/+50
2020-02-10lexers: ruby squiggly heredocsKelsey Judson1-1/+1
2020-02-07Merge branch 'lexer-c' of https://github.com/zsugabubus/visMarc André Tanner1-16/+42
2020-02-02lexers: also apply 7e9e0a2 to html and wsf lexersMarc André Tanner3-18/+5
Adapt in_tag to surrounding coding stlye and use the same simplified version in html, wsf and xml lexers.
2020-01-31lexers: XML performance improvementGeorgi Kirilov1-7/+1
the new pattern does more or less the same thing, but forward instead of backward.
2020-01-31lexers: add reference to new upstream locationMarc André Tanner1-1/+2
2020-01-31lexers: fix crash in rst lexerMarc André Tanner1-1/+1
Fix #665
2020-01-28lexers: add case keyword to rc lexerMarc André Tanner1-1/+1
Close #761
2020-01-27lexers: fix incorrect (and *very* slow) YAML lexer tokenGeorgi Kirilov1-6/+1
TODO: keys should only be highlighted in {} mappings.
2020-01-16Merge branch 'text' of https://github.com/zsugabubus/visMarc André Tanner1-0/+9
2020-01-16lexers: add Fennel supportGeorgi Kirilov1-0/+88
2020-01-12lexers: match whitespaces in text lexerzsugabubus1-0/+9
Otherwise, show-{tabs,newlines,spaces} replacement characters are undistinguishable from normal text.
2020-01-12lexers: update ansi_czsugabubus1-16/+42
- Fixed order of rules. - Some “keywords” were identified as “type”, now corrected. - Added compiler-specific common __keywords. - Added boolean and additional integer constants. - Added support for number suffixes. - Removed “#if 0“ comments, because it needs some work on the else branch.
2019-03-11Heredoc delimiter should end with a newlineSilas1-1/+1
Or else the following: <<EOF .... EOFXYZ parsers incorrectly.
2018-05-17Add support for Fantom language syntax highlightingSemyon Maryasin1-0/+105
http://fantom.org/
2018-05-12lexers: handle pony triple quoted strings properlyMurray1-1/+3
2018-04-08Updates to ruby lexer:Lucas Tolchinsky1-4/+4
Adds `extend`, `include`, `module_function` and `require_relative`.
2018-03-29lexers: add async/await keywords to javascriptDelapouite1-8/+9
2018-03-26lexers: remove execution file permission from clojure lexerMarc André Tanner1-0/+0
Fix #686
2018-02-28Add clojure lexer and filetype supportChristos Chatzifountas1-0/+193
Close #647
2018-02-28lexer: add reference to ReasonML homepageMarc André Tanner1-2/+1
2018-02-28Merge branch 'lexer-improvements' of https://github.com/roguh/visMarc André Tanner1-0/+84
2018-02-27Adds basic Reason ML lexer.Hugo Rivera1-0/+84
See https://reasonml.github.io/docs/en/comparison-to-ocaml.html for major differences between Reason and OCaml.
2018-02-24Fix asm lexer to correctly match conditional jcc, cmovcc, and setcc instructionsMiles Canfield1-2/+12
2018-01-27lexers: improve scheme lexerMurray Calavera1-59/+190
* fix character literals (#\" no longer quotes the entire file etc.) * properly nest block comments and support simplified datum comment * add r7rs keywords, functions and directives * fix identifiers - pipes were not recognized as delimiters - some valid identifiers were not recognized - some were partially parsed as keywords - quoting only worked on plain alphanumeric identifiers * fix numbers (some valid numbers were not recognised) * dont parse boolean constants as functions
2018-01-27lexers: pony missing tilde for unsafe operatorsMurray Calavera1-1/+1
2018-01-24PHP lexer: stop line comments right before ?>pystub1-1/+1
This allows to end PHP code sections. Otherwise token is treated as part of the comment and parser continues to parse whatever is after.
2017-12-25lexers: add ponyMurray Calavera2-1/+115
2017-12-01Python lexer: recognize python3's async/await keywordsСемён Марьясин1-0/+1
2017-11-20Update erlang syntax lexer.Emil Falk1-39/+20
2017-10-01Add `xs` lexer and mappings.David B. Lamkins1-0/+75
2017-09-15lexers: fix white space issue of recent php lexer changesMarc André Tanner1-40/+40
2017-07-26- added php constantsSamuel1-0/+25
2017-07-26- updated php keywordsSamuel1-12/+20
2017-07-24lexers: add copyright statement to strace lexerMarc André Tanner1-0/+1
2017-07-09Add Myrddin lexer and filetypes entryMichael Forney1-0/+72
2017-05-30lexer: add simple strace(1) output lexerMarc André Tanner1-0/+31
2017-05-12Add a whitespace rule for the "elixir" lexer.Tynan Colin Beatty1-0/+1
2017-03-31lexers: sync with scintillua changeset 600 rev fdeca0b808bfMarc André Tanner4-21/+179
I think the default value for the cache argument to the lexer load function should be true, not false. Optimize for the common case. This makes the API ugly/harder to use. But for now we follow upstream.
2017-03-24lexers: fix perl pattern for horrible regex linesS. Gilles1-0/+3
Under presently-not-precise circumstances, regex patterns longer than a screenful can cause first_match_pos to be nil. In this sutation, evaluating `first_match_pos - 1' will be an error, so jump to matchless case.
2017-03-19Fix errors and add ANS Forth 2012 keywordsstutonk1-17/+31
Added all ANS Forth 2012 keywords as defined at http://lars.nocrew.org/forth2012/core.html and removed keywords that were not part of the standard. This necessitated rewriting most of the Strings rules as well as removing some rules not consistent with the standard. Only the s\" form should allow escaping. The list of characters which may appear as part of a keyword has also been expanded where appropriate. Because '.' is a keyword as well as the first chatacter in a string pattern, strings must now be given parsing precedence over keywords to ensure proper highlighting. A few errors were also fixed such as moving the true (which should make keywords case-insensitive) within the word_match function's closing paren. Parens have been removed from the operator list and moved to their correct place as the delimiters for block comments.
2017-02-25lexers: sync with scintillua changeset 594 rev 6e29a8d2a783Marc André Tanner26-60/+71
Stuff which was left out / our local changes include: - lexer.lua: different loading mechanism and style handling - ansi_c.lua: for now we keep the separate token definitions with references to the respective standards. This should highlight file names after #include directives. It will also treat simple, non-nested occurrences of #if 0 ... #endif as a comment. - pkgbuild.lua: the arch specific fields have been kept - all scintilla $(style variables) have been replaced
2017-02-07Allow {} to be nested in shell variablesS. Gilles1-1/+1
This allows lines like : ${FOO:="${bar}/baz"} to be highlighted correctly.
2017-02-02lexer: fix scheme token rule orderingMarc André Tanner1-1/+1
This should fix #412 properly.
2017-02-02update comment and readme about lua pathChristian Hesse1-1/+2
Commit 3570869c removed the lexers sub directory from the Lua search path. Update the comment and readme to reflect this change.
2017-01-19lexer: sync with scintillua changeset 582 rev d70a5ee43d38Marc André Tanner106-119/+131
2017-01-19lexer: update READMEMarc André Tanner1-12/+18