- Oct 12, 2023
-
-
Adam Saponara authored
-
- Aug 20, 2023
-
-
Adam Saponara authored
doubt autotools is generating much beyond the generic forms of pcre2.h and config.h on most modern systems. compiling it ourselves is neater and requires less build deps.
-
- Apr 30, 2023
-
-
Adam Saponara authored
this is a rewrite of the syntax highlighting code. overall it's a salmon-colored patch (deleted more than added), the code is easier to follow, and it fixes some long-standing bugs. as noted in the readme, there was a bug involving overlapping rules. the most annoying instance of this bug was with strings containing a `/*` such as in glob patterns. for example: ``` "match/this/path/*" ``` with `syn_generic` applied, we used to interpret `/*` as the beginning of a multi-line comment, and therefore the rest of the file (or until there happened to be a closing `*/` somewhere). this bothered me for a very long time. this bug was due to how we used to apply rules. each rule would get applied one after the other, each from the beginning of the line. the last rule to style any given span of text superseded any previous rules that matched. in the rewrite, once a rule matches a span of text, we don't try to style that span anymore (until the text is edited of course). the one downside is that this seems to be slightly less performant. on my machine, applying `syn_generic` is about 5% slower, but it's still generally fast enough that you'd only start to notice the difference if you were opening massive files, tens or hundreds of megabytes large, with syntax highlighting on. a memo field was added (`smemo_t`) which drastically improved perf. there are probably further perf optimizations to be had. i added a couple more functional tests, on top of the existing ones, to exercise some edge cases of syntax highlighting. as always please report bugs if you find any.
-
- Jul 17, 2022
-
-
Adam Saponara authored
-
- Jul 15, 2022
-
-
Adam Saponara authored
-
- Jun 02, 2022
-
-
Adam Saponara authored
-
- May 28, 2022
-
-
Adam Saponara authored
-
- Sep 07, 2021
-
-
Adam Saponara authored
consider this an unstable commit. termbox2 is a line-by-line rewrite of termbox with some extra features, more flexibility, stricter error handling, and a more consistent api. it's also redesigned as a single-file header library. this makes it easy to copy-paste into other projects, which is what i've done here. at the time of writing, the canonical termbox2 repo is here: https://github.com/termbox/termbox2
-
- Jun 28, 2021
-
-
Adam authored
-
- Mar 07, 2021
-
-
Adam authored
-
- Sep 27, 2020
-
-
Adam Saponara authored
-
- Jul 21, 2020
-
-
Adam authored
-
- Dec 29, 2019
-
-
Adam Saponara authored
-
- Nov 18, 2019
-
-
Adam Saponara authored
-
- Dec 28, 2018
-
-
Adam Saponara authored
-
- Dec 22, 2018
-
-
Adam Saponara authored
-
- Dec 21, 2018
-
-
Adam Saponara authored
-
- Sep 06, 2018
-
-
Adam Saponara authored
-
- Sep 03, 2018
-
-
Adam Saponara authored
-
- Aug 25, 2018
-
-
Adam authored
-
- Mar 08, 2018
-
-
Adam Saponara authored
-
- Mar 07, 2018
-
-
Adam Saponara authored
-
Adam Saponara authored
-
- Feb 26, 2018
-
-
Adam Saponara authored
-
Adam Saponara authored
-
- Feb 25, 2018
-
-
Adam Saponara authored
cool idea, but rarely use it. may replace with a scripting lang.
-
- Feb 21, 2018
-
-
Adam Saponara authored
-
Adam Saponara authored
-
- Feb 13, 2018
-
-
Adam Saponara authored
-
Adam Saponara authored
-
- Jan 30, 2018
-
-
Adam Saponara authored
-
- Dec 08, 2017
-
-
Adam Saponara authored
-
Adam Saponara authored
-
- Aug 14, 2017
-
-
Adam Saponara authored
-
Adam Saponara authored
-
- May 01, 2017
-
-
Adam Saponara authored
-
- Apr 16, 2017
-
-
Adam Saponara authored
-
- Apr 13, 2017
-
-
Adam Saponara authored
-
- Apr 12, 2017
-
-
Adam Saponara authored
-
Adam Saponara authored
-