kakoune/rc/base
Tim Allen 9e142c6643 markdown.kak: Use lookahead/lookbehind assertions for formatting spans.
Previously, one of the syntaxes for italic was (greatly summarized) something
like this:

    [^_]_[^_]+_[^_]

That is to say, the regex matched the blanks on both sides of the italic span,
as well as the actual span content. That means that if you had consecutive
italic words:

    _some_ _italic_ _words_

...only the odd-numbered words would be highlighted: the space after "_some_"
was counted as part of that span, so it wasn't available as part of "_italic_"
and therefore "_italic_" wouldn't be highlighted. Likewise, if the first word
in a buffer was italic, it wouldn't be highlighted because the first underscore
was not preceded by a non-underscore character!

Now we use lookahead/lookbehind assertions, which don't count as part of the
matched span, so consecutive spans don't interfere with one another.

Fixes #2111.
2018-09-18 19:21:28 +10:00
..
autowrap.kak Make register expansions expand to the full register content 2018-07-05 07:54:28 +10:00
clojure.kak Improve Clojure highlighting 2018-09-04 20:44:25 -04:00
css.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
ctags.kak Convert some of the rc/ scripts to the new list syntax 2018-07-05 07:54:28 +10:00
d.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
etc.kak Fix remaining kak scripts to use the new highlighter syntax 2018-07-05 07:54:28 +10:00
file.kak Do not reparse %sh{...} strings 2018-07-05 07:54:28 +10:00
fish.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
gas.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
git.kak rc git: Support new rebase commands 2018-08-19 07:44:00 +03:00
go.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
haskell.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
html.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
ini.kak rc: Highlight systemd files in a dedicated script 2018-07-24 11:28:09 +03:00
java.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
javascript.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
json.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
julia.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
lint.kak Use -once hooks to remove fifo directories 2018-08-19 08:04:31 +10:00
lisp.kak rc lisp: Highlight basic numeral forms 2018-08-13 20:49:15 +03:00
lua.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
mail.kak mail.kak: Recognize Date header 2018-07-19 18:40:48 +10:00
markdown.kak markdown.kak: Use lookahead/lookbehind assertions for formatting spans. 2018-09-18 19:21:28 +10:00
mercurial.kak Add / behind add-highlighter path 2018-07-26 10:59:42 +02:00
ocaml.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
perl.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
restructuredtext.kak Tweak various scripts to improve the time they take to load 2018-07-19 18:32:29 +10:00
ruby.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
rust.kak rust.kak: Support Rust's raw-string syntax. 2018-08-02 15:16:25 +10:00
scala.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
screen.kak Do not reparse %sh{...} strings 2018-07-05 07:54:28 +10:00
spell.kak Fix unclosed string due to unescaped ' 2018-07-26 11:16:44 +02:00
sql.kak sql is case insensitive 2018-07-30 14:49:21 -04:00
swift.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
tmux.kak Do not reparse %sh{...} strings 2018-07-05 07:54:28 +10:00
x11.kak Do not reparse %sh{...} strings 2018-07-05 07:54:28 +10:00
yaml.kak Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00