| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
These are currently read-only properties.
|
|
This allows access to specific lines of a file, array indicies/line
numbers are 1 based. Read access is supported for [1, #lines] while
assigning to the 0 element will insert a new line at the beginning
of the file. Similarly assigning to lines[#lines+1] will add a new
line at the end of the file. The returned lines will not contain
any line termination characters.
|
|
|
|
|
|
|
|
The ordered list of paths for startup and lexer files is:
- $VIS_PATH/{,lexers}
- $XDG_CONFIG_HOME/vis/{,lexers} (defaulting to $HOME/.config/vis/{,lexers})
- /usr/local/share/vis/{,lexers}
- /usr/share/vis/{,lexers}
- package.path (standard lua search path)
|
|
|
|
Lua support can now be disabled at compile time using:
$ make CONFIG_LUA=0
This commit also adds an initial Lua API and provides a few
default hooks.
We now also require Lua >= 5.2 due to the uservalue constructs.
In principle the same functionality could be implemented using
function environments from Lua 5.1.
|