summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-01-25sam: only skip the last empty match if it follows a newlineMarc André Tanner
This further tweaks the hack introduced to ignore the last match of ^ at the end of the file, see 1a158268c7693b00bf43c7e81034816d8d00358c.
2021-01-25test/sam: add tests for empty matches at the end of a rangeMarc André Tanner
2021-01-25build: update alpine in docker build to version 3.13Christian Hesse
2021-01-20Merge branch 'patch-1' of https://github.com/dallinjdahl/visMarc André Tanner
2021-01-19Adding .sv extension to verilog syntax highlighterdallinjdahl
2021-01-12filetype: Detect make shebang for "makefile".parazyd
This is useful when writing "debian/rules" files in packages.
2021-01-12filetype: Set "bash" for APKBUILD and .ebuild.parazyd
2021-01-06lexers/git-rebase: also highlight break commandMarc André Tanner
2021-01-06lexers/strace: improve comments, field names and syscall resultsMarc André Tanner
2020-12-30Mention pkg-config in READMEMarc André Tanner
Fix #867
2020-12-29vis-lua: provide file.permission propertyMarc André Tanner
These are the permission bits of struct stat's st_mode field at the time of the most recent load/save. Close #861
2020-12-28vis: implement multiline to/till motionsMarc André Tanner
These are currently not mapped by default but can be enabled by mappings using their virtual key names.
2020-12-28vis: rename to/till motion internalsMarc André Tanner
This renames the functions and constants implementing the to/till motions. The new names should indicate that matches are only returned within the current line (not globally). Apart from the changed virtual key/command name this contains no functional changes.
2020-12-27lua: fix luacheck warningsMarc André Tanner
These are either accidentally global or unused variables. In the file type pluging the mime type variable was wrongly scoped, meaning the text/plain settings applied to all otherwise unknown files.
2020-12-11Merge branch 'fix-typos' of https://github.com/moesasji/visMarc André Tanner
2020-12-10fix typos in commentsMoesasji
2020-12-10vis: make O implementation independent of <Up> mappingMarc André Tanner
2020-12-08lexers: fix bug in bash lexer for last here-docSilas
f4f0f5b allowed "<<-EOF" heredocs to be parsed correctly, but it introduced a bug that made the lexer fail when the beginning of a here-doc was the last string in a file (optionally followed only by blanks). In order to fix this, move everything regarding "delimiter" within the block that is executed only if "delimiter" is not nil.
2020-12-08build: add git based version information backMarc André Tanner
2020-12-08Set version to 0.7Marc André Tanner
2020-12-08Add gemini lexerHaelwenn (lanodan) Monnier
2020-12-08Merge branch 'master' of https://github.com/KaneRoot/visMarc André Tanner
2020-12-06Zig filetype entry.Karchnu
2020-12-06Adding Zig lexer.Karchnu
2020-12-01Merge branch 's-0-bash-heredoc' of https://github.com/silasdb/visMarc André Tanner
2020-11-27Heredocs with "-" can have spaces before closingSilas
If a here-doc start delimiter begins with "-", then spaces are allowed to come before the closing delimiter. This patch fixes what would otherwise be parsed incorrectly: <<-EOF .... EOF
2020-11-26lexers: add meson build file lexerFlorian Fischer
2020-11-20ci: avoid usage of ::add-path:: command in GitHub actionMarc André Tanner
2020-11-20test: updateMarc André Tanner
2020-11-20view: make view_selections_dispose_all O(n)Mateusz Okulus
The for loop in selection_free won't run because the next element will always be NULL, because we are freeing from the end. Close #852
2020-11-20Make SourceHut badge show status of master branch commitsMarc André Tanner
2020-11-19correct a couple of typos and distinguish between immediate and waiting ↵Greg Reagle
operators
2020-11-19test/vim: remove test involving g~Marc André Tanner
This test does not seem to be stable on the GitHub macOS CI.
2020-11-14vis: fix <C-c> processing after SIGINTMarc André Tanner
There are two main ways how the input queue is managed in vis: - vis_keys_feed(..) appends new input to the queue and immediately starts processing it. Starting from the position before the call i.e. ignoring any previously queued input. This is typically used in key binding handlers where the input queue still contains the mapping leading to the invocation of the handler. In that case new input should be interpreted immediately, before the handler eventually returns and its mapping is consumed. - vis_keys_push(..) with pos=0, appends new input to the end of the queue and starts processing it from the start of the queue, taking the full content into consideration. This is used by the main loop when new input becomes available. This patch switches the handling of <C-c> after a SIGINT from the former to the latter mechanism and fixes mappings using <C-c> in a non-leading position.
2020-11-14build: fix curses library/pkg-config nameLeonardo Taccari
Gracefully fallback to curses(3) (no libcurses `.pc' file is present and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
2020-11-13vis: use localtime_r(3) instead of localtime(3)Marc André Tanner
This makes it thread safe. While it is unlikely that we use threads in the near future, it is sensible to avoid unnecessary global state.
2020-11-13sam: simplify boolean expression, start < end implies end > 0Marc André Tanner
2020-11-13map: remove no longer used map_leaf functionMarc André Tanner
2020-11-13Merge branch 'master' of https://github.com/ccao001/visMarc André Tanner
2020-11-13build: use feature test macros for memrchr configure checkMarc André Tanner
Previously these were only used to compile the main project source, resulting in inconsistencies between the feature detection and actual usage.
2020-11-12build: add -D_NETBSD_SOURCE for NetBSDSilas
memrchr() signature is not exposed by default for NetBSD. If one does not add -D_NETBSD_SOURCE, the compiler uses its own signature for memrchr() that returns a 32-bit integer, leading to misbehaviour in some situations. Defining _BSD_SOURCE doesn't work, so we define _NETBSD_SOURCE.
2020-11-12lua: fix typo in lilypond file extensionCarla Cao
There is no .lily file but there is a .ily file in lilypond for stylesheets. They are like css for lilypond. See here: http://lilypond.org/doc/v2.18/Documentation/learning/style-sheets
2020-10-30test: updateMarc André Tanner
2020-10-30text: simplify iterator_initMarc André Tanner
This was added in c240368d5da8208c15e0263034384414d938afb3 to work around a possibly bogus tis-interpreter warning regarding multiple accesses in the same expression.
2020-10-30text: fix invalid pointer comparisonMarc André Tanner
2020-10-30text: avoid invalid pointer arithmeticMarc André Tanner
2020-10-25test/core: add labs(3) implementation for TIS analyzerMarc André Tanner
While the ACSL specification for the function prototype is present, the actual implementation is missing. Not sure why?
2020-10-24text/core: add basic test for branching of revision treeMarc André Tanner
2020-10-24text/core: skip failing I/O test on CygwinMarc André Tanner
Cygwin does seemingly not support overlapping mmap(2) regions.
2020-10-23text/core: add basic test for linear text_{earlier,later}Marc André Tanner