Frank LENORMAND
ff52bd7027
rc python: Highlight indented decorators with .
...
Make sure decorators are on their own line, and don't stop highlighting at
the first dot when they are imported, e.g.
```
import enum
@enum.unique
class A(enum.Enum):
…
```
Ideally highlighting shouldn't stop at the first parenthesis either
(e.g. `@foo(['1'])`), but the current code somewhat highlights the contents
of the parens already, which is good enough in most cases.
2019-07-26 13:01:58 +03:00
Maxime Coste
550feb1706
Merge remote-tracking branch 'andreyorst/rust-highlighting'
2019-07-25 17:48:04 +10:00
Maxime Coste
6e1e79ed19
Merge branch 'master' of http://github.com/cglogic/kakoune
2019-07-25 17:26:41 +10:00
Oleh Hushchenkov
8fc705d4cc
Fix c-family indent on opening curly brace after if-else
2019-07-25 09:58:33 +03:00
Maxime Coste
65327da4cf
Merge remote-tracking branch 'laelath/markdown-lazy-load'
2019-07-24 17:38:00 +10:00
Justin Frank
a15ff0ffc3
Move module aliases to after main module definition
2019-07-22 23:48:30 -07:00
Justin Frank
8941002ce0
Give hooks a group so they're cleaned up
2019-07-22 19:03:04 -07:00
Justin Frank
89b50daa66
Use module alias pattern for markdown dynamic loading
2019-07-22 19:01:40 -07:00
Andrey Orst
677d1efb23
move regex highlighters to the top, add method, field and function hl
2019-07-22 22:32:26 +03:00
Andrey Orst
3c0a350079
require module the old way
2019-07-22 18:22:44 +03:00
Andrey Orst
a81eb158be
extend Rust highlighting
2019-07-22 15:56:29 +03:00
Maxime Coste
837416ea38
Merge remote-tracking branch 'MarSoft/nix-syntax'
2019-07-21 12:36:56 +10:00
Maxime Coste
d05ef24471
Merge remote-tracking branch 'gaeulbyul/css-comment'
2019-07-21 12:34:28 +10:00
Maxime Coste
27fce78eac
Merge remote-tracking branch 'codesoap/ledger'
2019-07-21 12:08:42 +10:00
Gaeulbyul
bd257ceb7d
css.kak: Highlight comment inside declaration
2019-07-18 01:33:57 +09:00
David Ross
27ed20582f
Add complete extra_word_chars for lisp
...
See https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node27.html .
2019-07-06 12:25:46 -07:00
David Ross
e65740873d
Treat '-' as an word character in lisp
...
'-' is part of identifiers in most or all lisps.
Strategy for implementing this copied from https://github.com/mawww/kakoune/blob/master/rc/filetype/scss.kak#L20 .
2019-07-05 06:44:45 -07:00
codesoap
2d15c13c1e
ledger.kak: Automatically indent postings in transactions
2019-07-02 09:49:52 +02:00
codesoap
710ebabcb8
Add ledger filetype
2019-07-01 20:49:55 +02:00
Maxime Coste
5c219cc743
Merge remote-tracking branch 'sjjf/sh_indent_v2'
2019-07-01 22:00:31 +10:00
Maxime Coste
2e3e0c47bb
Merge remote-tracking branch 'greenfork/fix-ruby-end-autoinsertion'
2019-06-30 10:30:40 +10:00
Simon Fowler
b2459f5ecb
Remove the sh_auto_indent option.
...
We now auto indent by default, with the option to disable it handled by
the `diabled_hooks` mechanism.
2019-06-29 12:34:14 +10:00
Frank LENORMAND
e5b9761818
rc filetype d: Highlight quoted backticks properly
...
Fixes #2970
2019-06-24 10:18:43 +03:00
Frank LENORMAND
b5321f3d1b
rc filetype d: Highlight line tokens properly
2019-06-24 10:12:29 +03:00
Maxime Coste
4b7b5d077c
Make quoting opt-in by using $kak_quoted_...
2019-06-23 12:04:21 +10:00
Dmitry Matveyev
68cdfb9b9d
Add more ending blocks for ruby "end" keyword autoinsertion
2019-06-21 13:55:14 +03:00
Simon Fowler
04005b06b0
Add support for basic auto-indenting of sh code.
...
This attempts to support a simple formatting and intentation style for
plain sh syntax (and other sh-compatible code which doesn't stray too
far from portable sh).
The complexity of sh syntax means that we have to be opinionated -
attempting to be more flexible would require extensive context
awareness, and would require something more akin to a proper
autoformatting tool or a language server.
The formatting style used here makes use of vertical whitespace as the
primary delimiter, so that code ends up looking like this:
if [ $foo = "bar" ]; then
thing1
else
thing2
fi
for i in foo bar baz; do
thing1
thing2
done
case "$foo" in
bar) thing1;;
baz)
thing1
thing2
;;
esac
Since the formatting style used is very opinionated the 'sh_auto_indent'
option can be used to disable auto-indentation, with the default set to
'no'.
2019-06-20 13:19:15 +10:00
Maxime Coste
59e43c8f0c
Merge remote-tracking branch 'lePerdu/latex-indent'
2019-06-19 23:03:20 +10:00
Maxime Coste
64b6bfa8ba
Merge remote-tracking branch 'dgmulf/awk'
2019-06-19 23:02:21 +10:00
Maxime Coste
27902fa05f
Merge remote-tracking branch 'greenfork/add-dart-highlighting-for-private-classes'
2019-06-19 23:01:56 +10:00
Daniel Mulford
952f919214
Basic language support for Awk
2019-06-17 22:12:15 -07:00
Dmitry Matveyev
aaa078f7c3
Add Dart highliting for private classes
2019-06-17 22:11:19 +03:00
Dmitry Matveyev
bd22b28d39
Fix Dart highlighting of annotations
2019-06-16 11:53:19 +03:00
Maxime Coste
9d52822702
Merge remote-tracking branch 'greenfork/ruby-do-keyword-support'
2019-06-15 10:55:44 +10:00
Dmitry Matveyev
01159a9e72
Add support for autoformatting after do keyword in Ruby
2019-06-12 09:03:24 +03:00
Alex Leferry 2
d97688b624
Update Crystal
2019-06-11 18:33:08 +02:00
Felix Freeman
f246313951
Consider */ closing comment on PHP automatic indentation prefix
2019-06-10 12:12:06 -04:00
hacktivista
2bc14edfd2
Fix PHP comments indentation
2019-06-10 10:47:19 -04:00
Maxime Coste
09e1ec97a9
Merge remote-tracking branch 'alexherbo2/crystal'
2019-06-06 23:14:51 +10:00
Alex Leferry 2
cd0665d61b
Update Crystal
2019-06-05 17:34:18 +02:00
Alex Leferry 2
39e2604420
Rename R.kak → r.kak
2019-06-04 13:56:08 +02:00
lePerdu
dbe32d314f
Add auto-indent scripts for LaTeX
2019-05-31 11:44:15 -04:00
Semyon Maryasin
accc203718
Add syntax highlighting for Nix package manager
...
Based on PHP. It is not ideal yet but much better than nothing.
2019-05-29 21:13:33 +03:00
Maxime Coste
14f45c0020
Merge remote-tracking branch 'alexherbo2/crystal'
2019-05-29 20:46:59 +10:00
Dmitry Matveyev
329ede9094
Add test/ ruby-alternative-file implementation
2019-05-25 12:39:52 +03:00
Justin Frank
1adc5f080b
Added wip markdown code lazy-loading hook
2019-05-24 09:41:05 -07:00
Alex Leferry 2
fff7e9b064
Add support for Crystal
...
https://crystal-lang.org
2019-05-21 18:25:29 +02:00
Maxime Coste
6b7f445936
Merge remote-tracking branch 'eraserhd/clojure-fix-for-1-char-symbols'
2019-05-21 21:36:30 +10:00
Dawid Ciężarkiewicz
d4b57b5b00
rust: Highlight async/await keywords
2019-05-17 20:26:30 -07:00
Jason Felice
ee9c9a777c
clojure: Fix indentation for lists with 1-character heads
...
Indentation can be different depending on the first word of list forms. The
indent hook uses `e` from inside the parent to select the first word for
testing whether it is a special word; however, in the case of a one-character
symbol, this selects to the end of the *next* word.
This rejects such selections.
2019-05-15 11:20:10 -04:00