home/rc/base
Tim Allen e640e6d859 Consecutive markdown list bullets are not a valid list prefix.
Previously, if you opened a new line after an underlined heading (what
the CommonMark spec calls a "Setext heading") or inserted a newline into
a line that started with `**strong emphasis**` the Markdown autoindent
hook would assume the leading symbols were list bullets and paste them
at the beginning of the new line.

However, the CommonMark specification says that list bullets must be
followed by at least one horizontal whitespace character, so Setext
heading underlines and strong emphasis are not valid list bullets and
should not be matched by the autoindent pattern.

This commit changes the regex that selects the pastable prefix of the
previous line so that it must match either:

  - One or more `>` characters with optional whitespace between them
    (a blockquote prefix), optionally followed by a list bullet; or
  - An optional blockquote prefix and a list bullet

Since we don't strictly need either the blockquote prefix nor the list
bullet, we could concievably just make both optional... but for lines
without either, the regex would find a zero-length match, and for the
purposes of copy/paste Kakoune treats that as a one-character match.
Therefore, the regex is written to fail if neither pattern is found.
2017-08-01 20:36:40 +10:00
..
autowrap.kak rc: Document non-hidden options with -docstring 2017-05-16 14:35:43 +03:00
clojure.kak Fix naming conventions in bundled scripts 2017-01-13 01:00:43 +00:00
css.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
ctags.kak Remove echo -color support, superseeded by echo -markup 2017-07-19 17:18:52 +02:00
d.kak Fix naming conventions in bundled scripts 2017-01-13 01:00:43 +00:00
etc.kak update command names 2017-01-04 13:04:27 +01:00
file.kak Add SVG detection as xml in file.kak 2017-06-02 15:43:51 +02:00
fish.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
gas.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
git.kak rc git: Don't force a highlighting format on commits 2017-07-17 08:36:47 +03:00
go.kak Fix naming conventions in bundled scripts 2017-01-13 01:00:43 +00:00
haskell.kak Use the extra_word_chars option in word based normal commands 2017-06-26 15:28:41 +01:00
html.kak Fix naming conventions in bundled scripts 2017-01-13 01:00:43 +00:00
ini.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
java.kak Add auto indentation to java files 2017-01-13 21:36:49 +01:00
javascript.kak Add Symbol, async and await highlighting for javascript.kak 2017-03-05 19:25:15 +01:00
json.kak Fix naming conventions in bundled scripts 2017-01-13 01:00:43 +00:00
julia.kak update command names 2017-01-04 13:04:27 +01:00
lint.kak Remove echo -color support, superseeded by echo -markup 2017-07-19 17:18:52 +02:00
lisp.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
lua.kak Remove echo -color support, superseeded by echo -markup 2017-07-19 17:18:52 +02:00
mail.kak update command names 2017-01-04 13:04:27 +01:00
markdown.kak Consecutive markdown list bullets are not a valid list prefix. 2017-08-01 20:36:40 +10:00
ocaml.kak add rc/ocaml.kak 2017-02-27 22:05:27 +01:00
perl.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
ruby.kak Remove echo -color support, superseeded by echo -markup 2017-07-19 17:18:52 +02:00
rust.kak rust highlighter: '"' is not the start of a string 2017-06-18 18:39:45 -07:00
scala.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
spell.kak Remove echo -color support, superseeded by echo -markup 2017-07-19 17:18:52 +02:00
swift.kak update command names 2017-01-04 13:04:27 +01:00
tmux.kak Remove echo -color support, superseeded by echo -markup 2017-07-19 17:18:52 +02:00
x11.kak Fix sakura termcmd setup 2017-07-25 10:26:52 +02:00
yaml.kak Highlight object keys in yaml 2017-05-16 09:30:01 +02:00