Maxime Coste
0dd6ea83d8
Merge remote-tracking branch 'evanrelf/haskell'
2019-11-18 20:03:14 +11:00
Maxime Coste
2804479b27
Merge remote-tracking branch 'JJK96/comment'
2019-11-18 20:01:37 +11:00
Evan Relf
199b4e2f66
Highlight Haskell deriving strategies keywords
2019-11-18 00:15:33 -08:00
Evan Relf
237acbcfeb
Improve Haskell quasiquote highlighting
...
Now only the inside of the quasiquote gets the string coloring applied.
2019-11-18 00:14:41 -08:00
Evan Relf
f40064b8d6
Add forall unicode character as Haskell keyword
2019-11-18 00:14:22 -08:00
Maxime Coste
7368678e26
Merge remote-tracking branch 'lenormf/fix-rust-formatcmd'
2019-11-17 10:41:47 +11:00
Maxime Coste
49f3a72bdc
Merge remote-tracking branch 'Anfid/update-lua-highlight'
2019-11-17 10:39:00 +11:00
Maxime Coste
d220ac049e
Merge remote-tracking branch 'Anfid/hunk-next-prev'
2019-11-17 10:38:52 +11:00
Maxime Coste
7582c5d5e7
Merge remote-tracking branch 'lenormf/fix-fail-errors'
2019-11-17 09:59:28 +11:00
Maxime Coste
090efcb1b1
Merge remote-tracking branch 'lePerdu/elm-lang-fixes'
2019-11-17 09:50:33 +11:00
Mikhail Pogretskiy
304f10bea2
rc lua: Improve syntax highlighting
2019-11-15 23:05:54 +07:00
Frank LENORMAND
5b1f9255a1
rc: Use the standard fail
command to report errors
...
Merely using `echo` with markup doesn't log errors in the debug
buffers, and is also less readable.
2019-11-14 08:32:55 +01:00
Mikhail Pogretskiy
e159acaa19
Add git next-hunk and prev-hunk commands
...
Fixes #2423
2019-11-13 22:55:03 +07:00
Jan-Jaap Korpershoek
d655af04cd
Change markdown block comment
2019-11-12 13:21:54 +01:00
Frank LENORMAND
fa6396405e
rc rust: Don't set an arbitrary formatter
...
Users who want to use a formatter are free to pick a tool of their
choosing and set `formatcmd` in their user configuration.
2019-11-11 14:20:26 +01:00
lePerdu
c5fad3cab6
Don't set formatcmd in the syntax file
2019-11-11 08:14:18 -05:00
Maxime Coste
b464822f1b
Merge branch 'fsharp-filetype-bugfix' of http://github.com/pema99/kakoune
2019-11-11 21:57:01 +11:00
Maxime Coste
d2d0e629fa
Merge remote-tracking branch 'lenormf/spell-lang'
2019-11-11 21:51:57 +11:00
pema99
43b8f1338b
Fix literal '"' in fsharp highlighting.
2019-11-11 06:25:37 +01:00
lePerdu
a805844e20
Fix type, variable, and function patterns
...
The old ones are functionally correct (I think), but are un-necessarily
complex and not don't semantically fit what they are trying to match.
2019-11-10 19:35:11 -05:00
lePerdu
a0d6d8a03f
Remove where
keyword and add port
keyword
2019-11-10 19:24:12 -05:00
lePerdu
44bc51a90a
Put -
first in character class patterns
...
If `-` is not first or last in a character classes, it matches a range based on
the character code. This applies to special characters as well as to
alphanumeric characters.
2019-11-10 18:29:07 -05:00
lePerdu
7c455db52e
Properly highlight Elm operators
...
- Highlight `=` and `|` as keywords (like `->` and `:`)
- Highlight custom operators (I guess they aren't really custom as of Elm 0.19
but there are still a bunch "built in").
2019-11-10 18:12:45 -05:00
lePerdu
166049f128
Highlight multiline strings in Elm
2019-11-10 18:12:17 -05:00
lePerdu
3232ba8a4c
Use elm-format for formatcmd in Elm
2019-11-10 18:11:36 -05:00
lePerdu
6aab2f54dd
Copy doc comment (///) prefix to new lines
2019-11-09 09:41:11 -05:00
lePerdu
2167374496
Add Gluon highlighting/indent
2019-11-09 09:22:19 -05:00
Maxime Coste
11975b7f31
Merge remote-tracking branch 'AJChapman/dhall'
2019-11-09 09:09:14 +11:00
Maxime Coste
88944c7b6a
Merge remote-tracking branch 'nhey/fsharp-filetype'
2019-11-09 09:06:44 +11:00
Frank LENORMAND
a7bf625236
rc modeline: Support spelling language options
2019-11-08 17:56:36 +01:00
Nikolaj Hey Hinnerskov
1f19b44b88
Add syntax highlighting for F#
...
Co-authored-by: pema99 <pemamalling@gmail.com>
2019-11-08 13:01:36 +01:00
Frank LENORMAND
be8d0e6726
rc spell: Allow storing a language in an option
...
This commit adds a `spell_lang` option that will be used by the
`spell` command when no language is passed to it directly.
Setting a buffer/window local option allows using `:spell` seamlessly
across several buffers, written in different languages.
2019-11-08 12:44:55 +01:00
Maxime Coste
d5f2744e59
Merge remote-tracking branch 'JJK96/xml'
2019-11-07 20:16:58 +11:00
Maxime Coste
f13239764b
Merge branch 'patch/fix-python-operator-highlighter' of http://github.com/cipharius/kakoune
2019-11-07 20:08:59 +11:00
Maxime Coste
50a4964910
Merge remote-tracking branch 'Delapouite/patch-3'
2019-11-07 20:06:02 +11:00
Maxime Coste
44047a69c5
Fix c-family include highlighting
2019-11-05 17:35:44 +11:00
Jan-Jaap Korpershoek
fcc8ed5df3
[html] Fix indentation when entering a newline while in the middle of a tag
...
Example:
```
<tag>|</tag>
```
Then press enter
Old behaviour:
```
<tag>
</tag>
```
New behaviour:
```
<tag>
</tag>
```
I also added a test for it
2019-11-03 12:25:02 +01:00
Alex Chapman
6a3421d285
Add support for quoted labels, empty record values and their type
2019-10-30 10:22:31 +11:00
Alex Chapman
9381277274
Add Dhall multi-line string literals
2019-10-30 10:22:23 +11:00
Alex Chapman
80a4e66622
Add syntax support for the Dhall configuration language.
2019-10-30 10:22:12 +11:00
cipharius
988b92d948
Fix python operator highlighter
2019-10-27 15:49:04 +02:00
Bruno Heridet
3726fd000c
filetype: add support for .make extension
...
While building fish-shell which uses `cmake`, a lot of regular Makefiles are generated with this extension.
2019-10-25 14:14:30 +02:00
Maxime Coste
5b34a6ed81
Merge remote-tracking branch 'eraserhd/tmux-version-check'
2019-10-23 22:36:11 +11:00
Maxime Coste
74275b82e1
Merge remote-tracking branch 'lenormf/python-highlight-module'
2019-10-23 22:32:10 +11:00
Maxime Coste
a49ae162f4
Add a -verbatim switch to evaluate-commands for perfect forwarding
...
-verbatim will disable argument parsing in evaluate-commands, making
it possible to forward a single command to a different context without
triggering a reparsing of the arguments.
Fixes -try-client support in grep.kak
Closes #3153
2019-10-23 22:30:23 +11:00
Maxime Coste
362021c1d3
Merge remote-tracking branch 'lenormf/key-semicolon'
2019-10-23 22:10:06 +11:00
Jason Felice
6f443537e4
Accept tmux pre-release and rc versions
2019-10-22 10:25:41 -04:00
Frank LENORMAND
e3ba7f7d56
rc swift: Remove highlighting of non-standard comments
...
Highlighting arbitrary words in Swift comments should be done from the
user configuration, plus hardcoding the `red` color doesn't play well
with all colorschemes.
2019-10-22 11:12:10 +02:00
Frank LENORMAND
21614cb06e
src: Create a <semicolon> named key
...
This commit allows using the <semicolon> expansion in commands, instead
of `\;`.
It makes commands look more elegant, and prevents new-comers from
falling into the trap of using <a-;> without escaping the semicolon.
2019-10-22 11:02:06 +02:00
Frank LENORMAND
2ed70ad5cc
rc man: Expose the actual buffer-space's width
...
Fixes #675
2019-10-20 21:38:58 +02:00
Frank LENORMAND
38746b169e
rc python: Highlight modules in import statements
2019-10-20 20:21:08 +02:00
Maxime Coste
a5d662f7fe
Fix d.kak invonluntary modification
2019-10-17 22:39:07 +11:00
Maxime Coste
e4fb70ebec
Replace ModeChange hooks by ModePush and ModePop
...
Remove deprecated InsertBegin, InsertEnd, NormalBegin, NormalEnd
hooks.
Closes #2545
2019-10-16 20:45:53 +11:00
Maxime Coste
a1a63901c1
Merge branch 'patch-1' of https://github.com/chaoky/kakoune
2019-10-15 20:46:40 +11:00
Maxime Coste
e4f815e350
Merge remote-tracking branch 'occivink/alt-fail'
2019-10-09 19:18:45 +11:00
Maxime Coste
5430f6ccad
Simplify argument pass through in git wrapper script
...
Fixes #2869
2019-10-09 17:40:57 +11:00
Olivier Perret
fac05f3ea0
[rc] Use 'fail' when the alternative file cannot be found
...
This makes it possible to implement a fallback strategy using 'try .. catch',
for cases where the alternative file is not stored in a subdirectory
2019-10-08 18:06:54 +02:00
Leonardo Dias ~Lordie
220d5b6e72
fixed regex for matching words
...
the regex for matching words was matching some characters that elm does not parse
added <_> and <->> as keywords
2019-10-02 03:46:23 -03:00
Leonardo Dias ~Lordie
32648d6cf4
Better elm syntax lighting
...
this will only highlight elm 0.19 (latest) properly
very close to how https://ellie-app.com/ highlights
- anything that starts with an upper case letter is a type
- anything that starts with a lower case letter is a function
- function declaration is just a function at the start of a line
note: the default color scheme looks too colorful
2019-10-01 23:44:54 -03:00
Maxime Coste
d793ca76b6
Merge branch 'haskell' of http://github.com/evanrelf/kakoune
2019-10-01 20:07:29 +10:00
Maxime Coste
f2e5582f34
Merge remote-tracking branch 'eraserhd/pr/master/extra_word_chars-on-window'
2019-10-01 20:06:03 +10:00
Maxime Coste
9421e28eb5
Merge remote-tracking branch 'occivink/grep-space'
2019-10-01 18:35:26 +10:00
Olivier Perret
b376e3b662
grep: fix for filenames containg spaces
2019-09-30 23:54:31 +02:00
Evan Relf
c544e01b7d
Add additional syntax highlighting for Haskell
...
- Function names in type signatures are now highlighted
- Quasiquotes are now highlighted
2019-09-28 15:38:43 -07:00
Jason Felice
f88cf7ffb4
rc, doc: set extra_word_chars on buffer, not window
...
For clojure.kak and haskell.kak, set extra_word_chars on the buffer
and not the window, so that the buffer's word db is updated correctly
for word completion.
Document this.
Also, minor refactor of clojure.kak.
Closes #3108
2019-09-26 09:55:02 -04:00
Maxime Coste
370693afd8
Do not autoscroll on grep results
...
Closes #3100
2019-09-26 20:30:38 +10:00
Maxime Coste
891a9f5fe6
Merge remote-tracking branch 'lenormf/fix-git-tools'
2019-09-22 09:29:19 +10:00
Maxime Coste
271b1d4f2f
Add a clang_directory option to set PWD when completing
...
This matches the directory entry in compilation databases
format.
2019-09-17 21:50:21 +10:00
Maxime Coste
8cca77c949
Accept docstrings with last line not fully indented
...
When trimming indent, the last line, if only containing
whitespaces does not need to match the indent, so that
this indentation style works:
-docstring %{
indented string
}
2019-09-17 21:48:00 +10:00
Maxime Coste
6d085f995e
Merge remote-tracking branch 'andreyorst/universal-git-path'
2019-09-16 07:06:50 +10:00
Andrey Orst
cab4908f1d
cd to file's dir
2019-09-15 22:29:33 +03:00
Maxime Coste
33a00c7031
Fix clang completion support with modern clang
2019-09-15 11:48:25 +10:00
Maxime Coste
90f83780a5
Rename formatter.kak to format.kak and alias format to format-buffer
2019-09-15 10:52:06 +10:00
Maxime Coste
6ee71191af
Merge remote-tracking branch 'codesoap/background_blocks'
2019-09-15 09:29:26 +10:00
Maxime Coste
7aec8b2231
Merge remote-tracking branch 'stevenyvr987/add-hyperlink-support-to-man-plugin'
2019-09-15 09:05:12 +10:00
Maxime Coste
54ba6a44c8
Merge remote-tracking branch 'occivink/refactor-format'
2019-09-15 09:01:19 +10:00
Maxime Coste
fb60eea66d
Merge remote-tracking branch 'lenormf/fix-latex'
2019-09-15 09:00:25 +10:00
Olivier Perret
82d99aa12b
Refactor formatter.kak
...
The 'format' command is split into two, 'format-selections' and
'format-buffer' which relies on the former.
2019-09-12 18:53:06 +02:00
Maxime Coste
64511baceb
Merge remote-tracking branch 'mogenson/editorconfig'
2019-09-08 22:57:14 +10:00
Frank LENORMAND
1aea592b76
rc latex: Highlight DTX and STY files
2019-09-05 10:19:39 +02:00
Frank LENORMAND
b3287a74cb
rc latex: Highlight .cls files as LaTeX
...
When .cls files are opened, the local `filetype` option is automatically
set to `tex`, which isn't supported.
2019-08-24 20:36:34 +02:00
Michael Mogenson
37ded5e400
Check if buffile is path before loading editorconfig settings
...
Check if buffile is a full path by checking for the beginning
'/' character in editorconfig-load command. This avoids a parsing
error from feeding a *scratch*/*debug*/*grep*/etc. buffer name to the
editorcofig command. Don't clear editorconfig hooks until after checking
for a valid bufffile path. This way, opening the *debug* buffer will
not clear the hooks from a previously parsed .editorconfig file. If
trim_trailing_whitespace is true, print the hook directly from awk. This
removes the need to save a editorcofig_trim_trailing_whitespace option.
Note: Setting the max_line_length requires a window to be created.
Therefore, a global hook to load .editorconfig settings should be:
hook global WinCreate .* %{editorconfig-load}
2019-08-20 14:55:17 -04:00
Maxime Coste
292efe1b37
Merge remote-tracking branch 'andreyorst/patch-2'
2019-08-19 22:30:16 +10:00
Maxime Coste
7d8fb135a9
Merge remote-tracking branch 'codesoap/makefile'
2019-08-19 22:25:18 +10:00
Maxime Coste
5e2f123baf
Merge branch 'master' of https://github.com/aecepoglu/kakoune
2019-08-19 22:24:14 +10:00
Maxime Coste
349586b464
Merge remote-tracking branch 'andreyorst/fix-rust-meta-attributes'
2019-08-19 22:20:13 +10:00
Maxime Coste
0f5389700e
Merge remote-tracking branch 'nhey/master'
2019-08-19 22:19:29 +10:00
Andrey Orst
427153b8e9
remove wrong '+' from awk regex
2019-08-12 22:18:26 +03:00
nhey
4722db7103
Highlight parenthesized paths. Also change '()' to '§' for module quoting.
2019-08-12 18:07:32 +02:00
tawsi-melek
3f405b00f1
Revert back to previous char literal highlighter as it's more precise
2019-08-12 17:17:20 +02:00
tawsi-melek
228a8dd9ae
Fix some more edge cases
...
* Adapt the char literal highlighter from c-family.kak
* Fix line comment adjacent to char literal not being highlighted
* Fix single quote terminating a double quote string
2019-08-12 16:40:35 +02:00
tawsi-melek
1c58e5aa90
Improve single line comments
...
* '#' now gets highlighted as a char literal
* Remove highlighting for comment tags and escape sequences
2019-08-08 22:47:22 +02:00
tawsi-melek
93e64b4541
Some more improvements
...
* Fix keywords in comments being highlighted
* Highlight Nim's escape sequences for strings
* Highlight common comment tags
* Add on/off to the highlighted boolean values
* Remove redundant regex highlighter for comments
* Fix autoindent indenting lines more than it should
2019-08-08 21:17:55 +02:00
Andrey Orst
396236f728
support raw strings withing the meta attributes
2019-08-07 11:37:02 +03:00
Andrey Orst
3156ecacc3
fix #3043
2019-08-06 17:02:51 +03:00
tawsi-melek
5ca0b9baa3
Enum too
2019-08-06 00:00:38 +02:00
tawsi-melek
ff7397b593
nim.kak: Add auto-indent after tuple and object
...
Before:
```nim
type
MyType = tuple
myint: int # This line needs to be indented manually
```
After:
```nim
type
MyType = tuple
myint: int # Lines after 'tuple' are now indented automatically
```
2019-08-05 22:02:56 +02:00
Maxime Coste
6eec6e656d
Merge remote-tracking branch 'lenormf/fix-python-decorators'
2019-08-04 20:21:20 +10:00
Jason Felice
ba672623bc
Insert Clojure ns directive for new files
2019-07-31 09:38:09 -04:00
codesoap
e502097d01
makefile.kak: require whitespace after target
2019-07-30 14:43:11 +02:00