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 Add categories in rc/ 2019-03-21 01:06:16 +01:00
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 rc: Make docstrings more readable 2020-02-03 20:53:28 +01:00
cmake.kak Update remaining files to new provide/require format 2019-04-11 15:54:58 -07:00
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 src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
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 diff.kak: add diff file and diff hunk text objects 2020-04-03 15:48:54 -04:00
dockerfile.kak Fixed many of the filetype support modules to not use BufSetOption to load 2019-04-09 20:54:19 -07:00
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 Add support for eRuby 2020-06-03 15:12:51 +02:00
etc.kak Fixed several more support files. 2019-04-10 16:48:46 -07:00
exherbo.kak Update remaining files to new provide/require format 2019-04-11 15:54:58 -07:00
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 src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
git.kak rc git: Highlight commands differently from pick 2019-12-08 13:49:53 +01:00
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 Add html module to hbs filetype to correctly highlight hbs files 2020-01-16 10:20:35 +01:00
html.kak [html] Fix indentation when entering a newline while in the middle of a tag 2019-11-03 12:25:02 +01:00
i3.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
ini.kak rc ini: More leniently highlight section names 2020-05-14 10:25:38 +03:00
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 rc jinja: Highlight Jinja statements/expressions 2020-01-08 12:22:34 +01:00
json.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
julia.kak julia.kak: added keywords "mutable" and "struct" 2020-01-08 15:21:08 -03:00
just.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
kakrc.kak kakrc: Add trigger-user-hook keyword 2020-08-22 23:16:46 +02:00
kickstart.kak Update remaining files to new provide/require format 2019-04-11 15:54:58 -07:00
latex.kak Clean up my previous updates 2020-07-29 09:40:58 -06:00
ledger.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
lisp.kak {clojure,lisp}.kak: handle doubled brackets 2020-01-03 15:14:56 -05:00
lua.kak Avoid accidentally using environment variables in sh scopes 2020-08-24 19:01:05 +02:00
mail.kak Highlight mail References headers 2020-04-21 13:21:35 +10:00
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 Update remaining files to new provide/require format 2019-04-11 15:54:58 -07:00
meson.kak Highlight meson_options.txt as well 2020-04-15 02:49:21 +02:00
mlb.kak Add highlighters for Standard ML 2020-06-23 19:22:35 +01:00
moon.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
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 Modularize r file support 2019-11-26 21:32:52 +11:00
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 scheme.kak: fixes for r7rs word characters 2020-06-17 15:51:47 -04:00
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 Add highlighters for Standard ML 2020-06-23 19:22:35 +01:00
sql.kak Fixed many of the filetype support modules to not use BufSetOption to load 2019-04-09 20:54:19 -07:00
swift.kak rc swift: Remove highlighting of non-standard comments 2019-10-22 11:12:10 +02:00
systemd.kak Add categories in rc/ 2019-03-21 01:06:16 +01:00
taskpaper.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
terraform.kak Add filetype for terraform files with syntax hl 2019-11-18 20:41:42 +00:00
toml.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
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 Fixed many of the filetype support modules to not use BufSetOption to load 2019-04-09 20:54:19 -07:00
void-linux.kak Add categories in rc/ 2019-03-21 01:06:16 +01:00
yaml.kak src: Create a <semicolon> named key 2019-10-22 11:02:06 +02:00
zig.kak Fix deindentation in zig.kak 2020-07-29 21:46:51 -06:00