aboutsummaryrefslogtreecommitdiff
path: root/vis.lua
AgeCommit message (Collapse)AuthorFilesLines
2016-12-07Move all lua related files to lua/ subfolderMarc André Tanner1-664/+0
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.
2016-12-06vis-lua: more extensive Lua API documentationMarc André Tanner1-0/+33
2016-12-03vis: use file(1) for file type detectionMarc André Tanner1-174/+384
File type detection works as follows: 1) strip off suffixes to be ignored and test against a set of known file extensions 2) run `file -bL --mime-type` and check against a set of known mime types 3) read out the first few bytes of the file and pass them to custom Lua file type detection functions For now the configured file extensions are literal strings which are matched against the end of the file name. Maybe we should use Lua patterns instead. We will need to add more mime types to our mapping table. For now only the `bash` file type was associated with the text/x-shellscript mime type.
2016-11-30lexer: add standard mlMurray Calavera1-0/+1
2016-11-15vis: move initial theme loading code to luaMarc André Tanner1-0/+2
2016-11-10vis: change default status bar indication for Windows style line endingsMarc André Tanner1-2/+2
2016-11-10vis-lua: change misnamed attribute values of `file.newlines`Marc André Tanner1-1/+1
Also rename underlying C code.
2016-11-01vis: abort syntax highlighting if viewport is invalidMarc André Tanner1-0/+3
In theory this should not happen in the first place, but in practice it might fix the symptoms reported in issue #367.
2016-10-21Add app definitions for awk in vis.luaLarry Hynes1-1/+1
2016-10-07lexers: sync with scintillua changeset 571 rev 23435f1d82daMarc André Tanner1-0/+1
This fixes ":set syntax text" and adds a missing file association for the taskpaper lexer. The protobuf and crystal lexers were slightly reformatted, but should contain no functional changes.
2016-09-29Cosmetic changes to file detection codeMarc André Tanner1-5/+7
2016-09-28Replace win.file.lines with win.file:content for better performanceAlexey Dubinin1-3/+3
2016-09-27Better file type detection: full filename patterns, shebang, custom detector ↵Alexey Dubinin1-124/+201
functions
2016-05-28lexer: add lexer for Google protocol buffer IDLDavid B. Lamkins1-0/+1
Close #326
2016-05-24vis-lua: cleanup Lua status bar display codeMarc André Tanner1-15/+11
2016-05-22vis: only display mode in status bar of active windowMarc André Tanner1-1/+1
2016-05-22vis: load default styles even for unknown file typesMarc André Tanner1-8/+11
2016-05-22vis: refactor status line handlingMarc André Tanner1-0/+51
Make window status bar content configurable via Lua.
2016-05-22vis: consider :set horizon setting when syntax highlightingMarc André Tanner1-2/+1
2016-05-22vis: move syntax highlighting to pure Lua codeMarc André Tanner1-0/+61
2016-05-19lexer: add crystalMichel Martens1-0/+1
2016-05-11lexer: *.cc is a C++ file extensionMarc André Tanner1-2/+2
2016-05-11Merge branch 'fstab' of https://github.com/eworm-de/visMarc André Tanner1-0/+1
2016-05-11lexer: add fstabChristian Hesse1-0/+1
2016-05-11lexer: add delimiter-separated-valuesChristian Hesse1-0/+1
2016-05-07lexer: add networkd file LPeg lexerChristian Hesse1-0/+1
2016-05-07lexer: add systemd unit file LPeg lexerChristian Hesse1-0/+1
2016-05-07lexer: sort list of file extensionsChristian Hesse1-39/+39
2016-05-06lexer: assume .h is ANSI C, not C++Christian Hesse1-2/+2
2016-05-04vis-lua: reload all lexers after theme changeMarc André Tanner1-0/+16
Close #221
2016-04-29vis: move non-configuration sections out of visrc.lua into vis.luaMarc André Tanner1-0/+203
The intention is that vis.lua will provide parts of the Lua API not implemented in the C core. Please update your existing visrc.lua configuration file accordingly.