summaryrefslogtreecommitdiff
path: root/lua/lexers
AgeCommit message (Collapse)Author
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.
2017-02-02lexer: fix scheme token rule orderingMarc André Tanner
This should fix #412 properly.
2017-02-02update comment and readme about lua pathChristian Hesse
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é Tanner
2017-01-19lexer: update READMEMarc André Tanner
2017-01-19lexer: update C lexer to C11 and add POSIX errno constantsMarc André Tanner
The most apparent change is that NULL is now also highlighted, the themes might need to be tweaked a bit. Based on an initial patch by Christian Hesse. Close #307
2017-01-18lexer: add lexer for Parallax Spin languageDavid B. Lamkins
Close #466
2017-01-05lua: adjust C lexer to recognize POSIX typesS. Gilles
2016-12-29Add rc lexerMichael Forney
2016-12-07Move all lua related files to lua/ subfolderMarc André Tanner
Also remove the lexers sub directory from the Lua search path. As a result we attempt to open fewer files during startup: $ strace -e open -o log ./vis +q config.h && wc -l log In order to avoid having to modifiy all lexers which `require('lexer')` we instead place a symlink in the top level directory. $ ./configure --disable-lua $ rm -rf lua Should result in a source tree with most lua specifc functionality removed.