summaryrefslogtreecommitdiff
path: root/lua/lexers
AgeCommit message (Collapse)Author
2020-04-28lexers: prioritize markdown list ruleMarc André Tanner
Reorder the list rule such that it matches before the rule for code blocks. There are still some problems with multiline list items which are indented and wrongly matched as code blocks.
2020-04-28lexers: make markdown white space rule less greedyMarc André Tanner
This should give the code block rule a chance to actually match something, whereas before all leading white space was already consumed. Fix #823
2020-03-23Add Julia lexerTobias Frilling
2020-03-03Add Elm lexerKarl Schultheisz
2020-02-24lua: add `redrawtime` optionGeorgi Kirilov
Upper bound lexing time and cancel highlighting if it is exceeded.
2020-02-11lexers: fix TOML comments not being detectedRandy
`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 errorRandy
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é Tanner
2020-02-10lexers: ruby squiggly heredocsKelsey Judson
2020-02-07Merge branch 'lexer-c' of https://github.com/zsugabubus/visMarc André Tanner
2020-02-02lexers: also apply 7e9e0a2 to html and wsf lexersMarc André Tanner
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 Kirilov
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é Tanner
2020-01-31lexers: fix crash in rst lexerMarc André Tanner
Fix #665
2020-01-28lexers: add case keyword to rc lexerMarc André Tanner
Close #761
2020-01-27lexers: fix incorrect (and *very* slow) YAML lexer tokenGeorgi Kirilov
TODO: keys should only be highlighted in {} mappings.
2020-01-16Merge branch 'text' of https://github.com/zsugabubus/visMarc André Tanner
2020-01-16lexers: add Fennel supportGeorgi Kirilov
2020-01-12lexers: match whitespaces in text lexerzsugabubus
Otherwise, show-{tabs,newlines,spaces} replacement characters are undistinguishable from normal text.
2020-01-12lexers: update ansi_czsugabubus
- 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 newlineSilas
Or else the following: <<EOF .... EOFXYZ parsers incorrectly.
2018-05-17Add support for Fantom language syntax highlightingSemyon Maryasin
http://fantom.org/
2018-05-12lexers: handle pony triple quoted strings properlyMurray
2018-04-08Updates to ruby lexer:Lucas Tolchinsky
Adds `extend`, `include`, `module_function` and `require_relative`.
2018-03-29lexers: add async/await keywords to javascriptDelapouite
2018-03-26lexers: remove execution file permission from clojure lexerMarc André Tanner
Fix #686
2018-02-28Add clojure lexer and filetype supportChristos Chatzifountas
Close #647
2018-02-28lexer: add reference to ReasonML homepageMarc André Tanner
2018-02-28Merge branch 'lexer-improvements' of https://github.com/roguh/visMarc André Tanner
2018-02-27Adds basic Reason ML lexer.Hugo Rivera
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 Canfield
2018-01-27lexers: improve scheme lexerMurray Calavera
* 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 Calavera
2018-01-24PHP lexer: stop line comments right before ?>pystub
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 Calavera
2017-12-01Python lexer: recognize python3's async/await keywordsСемён Марьясин
2017-11-20Update erlang syntax lexer.Emil Falk
2017-10-01Add `xs` lexer and mappings.David B. Lamkins
2017-09-15lexers: fix white space issue of recent php lexer changesMarc André Tanner
2017-07-26- added php constantsSamuel
2017-07-26- updated php keywordsSamuel
2017-07-24lexers: add copyright statement to strace lexerMarc André Tanner
2017-07-09Add Myrddin lexer and filetypes entryMichael Forney
2017-05-30lexer: add simple strace(1) output lexerMarc André Tanner
2017-05-12Add a whitespace rule for the "elixir" lexer.Tynan Colin Beatty
2017-03-31lexers: sync with scintillua changeset 600 rev fdeca0b808bfMarc André Tanner
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. Gilles
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 keywordsstutonk
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é Tanner
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. Gilles
This allows lines like : ${FOO:="${bar}/baz"} to be highlighted correctly.