kakoune/rc/filetype
Frank LENORMAND 3145e3e939 rc markdown: Highlight trailing spaces properly
This commit addresses the following issues:

* highlight trailing space characters with the `meta` face, instead of
  `PrimarySelection`
* make the regex more readable by using a capture group in stead of
  `\K`
* specifically match space characters, not other horizontal whitespace
  characters
* match two or more space characters

Reference[1]:

> When you do want to insert a <br /> break tag using Markdown, you
> end a line with two or more spaces, then type return.

[1] https://daringfireball.net/projects/markdown/syntax#p

Note that the original reproducer doesn't seem to work anymore,
probably because of changes made to how lists are highlighted.

Fixes #911
2020-09-01 13:12:58 +03:00
..
arch-linux.kak
asciidoc.kak asciidoc: Add a highlighters for links 2020-07-30 16:56:56 -04:00
awk.kak Update deindentation rule for awk.kak, cabal.kak, go.kak 2020-07-29 15:06:27 -06:00
c-family.kak Merge remote-tracking branch 'johnisom/deindent-closing-braces' 2020-07-30 21:14:37 +10:00
cabal.kak Update deindentation rule for awk.kak, cabal.kak, go.kak 2020-07-29 15:06:27 -06:00
clojure.kak
cmake.kak
coffee.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
coq.kak fix indent behavior for lines without indent 2020-05-03 17:48:44 +08:00
crystal.kak Replace my implementation of crystal-insert-on-new-line with already-existing ruby one 2020-08-02 11:39:59 -06:00
css.kak Update deindenting in css.kak 2020-07-29 09:35:36 -06:00
cucumber.kak
cue.kak Update deindentation in cue.kak 2020-07-29 17:02:54 -06:00
d.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
dart.kak Update deindenting in dart.kak and javascript.kak 2020-07-29 09:34:29 -06:00
dhall.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
diff.kak
dockerfile.kak
elixir.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
elm.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
eruby.kak
etc.kak
exherbo.kak
fish.kak fish.kak: add missing highlighting for builtins true and string 2020-08-23 19:15:52 +02:00
fsharp.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
gas.kak
git.kak
gluon.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
go.kak Update deindentation rule for awk.kak, cabal.kak, go.kak 2020-07-29 15:06:27 -06:00
haml.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
haskell.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
hbs.kak
html.kak
i3.kak
ini.kak
java.kak Update deindentation in java.kak 2020-07-29 17:02:50 -06:00
javascript.kak Fix already-existing bug in javascript.kak 2020-07-29 15:04:14 -06:00
jinja.kak
json.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
julia.kak
just.kak
kakrc.kak kakrc: Add trigger-user-hook keyword 2020-08-22 23:16:46 +02:00
kickstart.kak
latex.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
ledger.kak
lisp.kak
lua.kak Avoid accidentally using environment variables in sh scopes 2020-08-24 19:01:05 +02:00
mail.kak
makefile.kak rc: conservative comment highlighting for shells 2020-07-28 20:32:56 +02:00
markdown.kak rc markdown: Highlight trailing spaces properly 2020-09-01 13:12:58 +03:00
mercurial.kak
meson.kak
mlb.kak
moon.kak
nim.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
nix.kak Update deindentation in nix.kak 2020-07-29 20:12:54 -06:00
ocaml.kak ocaml quoted-strings 2020-07-20 13:07:45 +03:00
perl.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
php.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
pony.kak Avoid extra indent when line does not end on keyword 2020-08-23 19:15:52 +02:00
protobuf.kak Fix deindentation in protobuf.kak 2020-07-29 20:41:18 -06:00
pug.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
python.kak Add assignment expression := (walrus) operator 2020-08-12 23:12:35 -07:00
r.kak
ragel.kak Fix already-existing error in ragel.kak 2020-07-29 20:41:21 -06:00
restructuredtext.kak colors: Retire the bold and italic faces 2020-05-15 11:56:38 +03:00
ruby.kak Avoid accidentally using environment variables in sh scopes 2020-08-24 19:01:05 +02:00
rust.kak Merge remote-tracking branch 'pickfire/rust-highlight' 2020-07-31 07:50:14 +10:00
sass.kak Fix deindentation in sass.kak 2020-07-29 21:22:38 -06:00
scala.kak Fix deindentation in scala.kak 2020-07-29 21:25:55 -06:00
scheme.kak
scss.kak Replace ModeChange hooks by ModePush and ModePop 2019-10-16 20:45:53 +11:00
sh.kak Merge remote-tracking branch 'krobelus/indent-after-keyword' 2020-08-24 19:24:19 +10:00
sml.kak
sql.kak
swift.kak
systemd.kak Add categories in rc/ 2019-03-21 01:06:16 +01:00
taskpaper.kak
terraform.kak
toml.kak
troff.kak Fixed many of the filetype support modules to not use BufSetOption to load 2019-04-09 20:54:19 -07:00
tupfile.kak
void-linux.kak
yaml.kak
zig.kak Fix deindentation in zig.kak 2020-07-29 21:46:51 -06:00