summaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)Author
2018-02-28Merge branch 'vis-open-fixes' of https://github.com/kj/visMarc André Tanner
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-27Add .yml as a YAML file extensionHugo Rivera
2018-02-27Add ^Vagrantfile$ as a Ruby file extensionHugo Rivera
2018-02-24Fix asm lexer to correctly match conditional jcc, cmovcc, and setcc instructionsMiles Canfield
2018-02-19Merge branch 'master' of https://github.com/ii8/visMarc André Tanner
2018-01-27lua: recognize scheme library definition filesMurray Calavera
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-27vis-complete: send whole paths for completionTwoFinger
text_object_word() was only sending the last part of a pathname to vis-complete. text_object_longword() is better, but sometimes may send a bit too much, so leading delimiters for some languages are stripped additionally.
2018-01-26lua: reap the zombie after io.popen()Casper Ti. Vector
Close #655
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.
2018-01-22lua: fix theme loading when lexer module is not availableMarc André Tanner
The color settings are currently stored in the `vis.lexers` table, make sure it is not nil even when loading the lexer module (or one of its dependencies e.g. lpeg) failed.
2018-01-01vis-open: fix for absolute and non-existent pathsKelsey Judson
When the shell cannot find any matching files, the glob is not expanded, and vis-open will return the absolute path of the current working directory (because dirname outputs '.'), followed by the filename, followed by a literal '*'. This commit checks that the final path actually exists, and if not, exits with status 1. It also uses text_object_longword for the range to match, so that absolute paths are accepted, and replaced properly (else it only works back to the first '/').
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-30lexer: associate *.conf to the ini lexerMarc André Tanner
2017-10-30lexer: fix file type association for xs lexerMarc André Tanner
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-09-14Reassign .cls file extension to latexLukas Tobler
Both VB and LaTex use .cls file extensions. It should be a much more reasonable default to assume LaTex syntax.
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-14vis-lua: make selection first class primitives in Lua APIMarc André Tanner
2017-07-09Add Myrddin lexer and filetypes entryMichael Forney
2017-06-10More theme improvementsPhilipp Emanuel Weidmann
2017-06-05themes: simplify color definitionMarc André Tanner
2017-06-04Improve appearance of line numbers and EOF markersPhilipp Emanuel Weidmann
2017-05-31vis-lua: fix file:match_at API documentationMarc André Tanner
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-04-09vis: remove handling of \r\n line endingsMarc André Tanner
Use something like dos2unix(1) and unix2dos(1), if you need to edit such files.
2017-03-31vis: improve tab completion in command promptMarc André Tanner
At some point it should probably be possible to add command prompt bindings from within Lua. Currently there is no easy/realiable way to detect the prompt window. Should improve #526.
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-19vis-lua: allow operators to be defined as lua functionsMarc André Tanner
2017-03-19Move :set horizon option implementaiton to luaMarc André Tanner
2017-03-19Move :set theme option implementation to luaMarc André Tanner
2017-03-19Move :set syntax option implementation to luaMarc André Tanner
It is no longer possible to change the used syntax by assigning to the `win.syntax = name` field, instead the function win:set_syntax(name)` should be called. The distinction between filetype and syntax lexer to use should probably be clarified/cleaned up at some point.
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-03-18Recognize additional Forth filetypestutonk
2017-03-15Make Vis' Solarized theme match the official Vim one.Tim Allen
2017-03-14Restructure display codeMarc André Tanner
Use pull instead of push based model for display code. Previously view.c was calling into the ui frontend code, with the new scheme this switches around: the necessary data is fetched by the ui as necessary. The UI independent display code is moved out of view.c/ui-curses.c into vis.c. The cell styles are now directly embedded into the Cell struct. New UI styles are introduced for: - status bar (focused / non-focused) - info message - window separator - EOF symbol You will have to update your color themes. The terminal output code is further abstracted into a generic ui-terminal.c part which keeps track of the whole in-memory cell matrix and #includes ui-terminal-curses.c for the actual terminal output. This architecture currently assumes that there are no overlapping windows. It will also allow non-curses based terminal user interfaces.
2017-03-07lua: add filetype detection for Plan9 rc and derivativesDavid B. Lamkins
Close #513
2017-03-05lua: fix more luacheck warningsMarc André Tanner