Johannes Altmanninger
b929748f8e
rc filetype: fix double space in trim-indent hooks
2022-05-26 17:08:15 +02:00
Johannes Altmanninger
4c7207991a
rc crystal: stop using ruby-trim-indent
2022-05-26 17:08:15 +02:00
Sidharth Kshatriya
70f9d8fbef
OCaml: Recognize '\"'
as a char literal and not the start of a string literal
2022-05-15 11:23:06 +05:30
Sidharth Kshatriya
8cfe59fcb0
OCaml: Automatically insert closing comment when user starts a comment
...
An OCaml comment is `(* Some comment *)`. Like the C-family this can be
a multiline comment.
Recognize when the user is trying to commence a comment when they type `(*` and
then automatically insert `*)` on behalf of the user. A small convenience.
Co-authored-by: Maxime Coste <mawww@kakoune.org>
2022-05-13 12:58:30 +05:30
Maxime Coste
459c6f589f
Merge branch 'cjs' of http://github.com/clarfonthey/kakoune
2022-05-10 22:37:43 +10:00
Maxime Coste
a28dd16b2e
Merge remote-tracking branch 'adamchristiansen/gitignore-highlighting'
2022-05-10 22:36:44 +10:00
ltdk
fadbad51ca
Mark .cjs as javascript
2022-05-09 13:20:27 -04:00
Adam Christiansen
1735aae85f
Fixed extra + sign leftover from patch
...
An extra + sign was removed that was a remnant of a suggested
patch/diff.
2022-05-09 09:30:39 -06:00
Adam Christiansen
70013f5174
Fix gitignore highlighter glob handling
...
Fixes the handling of multiple backslashes before gitignore * and ?
glob patterns. Adds character classes to gitignore highlighting.
Co-authored-by: Johannes Altmanninger <aclopte@gmail.com>
2022-05-09 09:30:33 -06:00
Maxime Coste
3882b0e21b
Merge branch 'gitmodules' of http://github.com/clarfonthey/kakoune
2022-05-09 20:07:47 +10:00
Maxime Coste
e036c4556a
Merge remote-tracking branch 'c7skasku/highlight-0X'
2022-05-09 20:03:37 +10:00
Adam Christiansen
ed99e056b6
Add gitignore highlighting
2022-05-07 20:14:29 -06:00
Cormac Stephenson
6a630ae3e6
c-family: highlight 0X style int literals
2022-05-05 13:41:35 +01:00
in0ni
0cf5105df1
Merge branch 'mawww:master' into master
2022-05-03 22:15:42 -04:00
Andrés González
9b49c5db0d
fix single line comment behavior on insert, remove unnecessary commented blocks
2022-05-03 22:11:28 -04:00
ltdk
e809b9bfcc
Mark gitmodules as ini
2022-05-03 17:49:10 -04:00
Maxime Coste
bb742eda0f
Merge remote-tracking branch 'in0ni/master'
2022-04-25 19:31:16 +10:00
Andrés González
384d89ba7a
Merge branch 'master' of github.com:in0ni/kakoune
2022-04-19 18:36:32 -04:00
Andrés González
abc3654765
include : and :: as being highlighted for pseudo classes
2022-04-19 18:31:33 -04:00
Andrés González
4215e8a6eb
use '0:FACE' for selectors as the entire string should be highlighted
2022-04-12 08:38:18 -04:00
Andrés González
b81d38da5e
remove '+a' in pseudo classes face
2022-04-12 08:31:06 -04:00
Andrés González
8888b8d561
only highlight html tags (1:keyword), fix typo in pseudo
2022-04-12 08:27:47 -04:00
Andrés González
480be5207c
allow html tags to be followed by comma, create cssLogicalOperator face
2022-04-12 08:22:56 -04:00
Maxime Coste
3c0ca3e6ae
Merge remote-tracking branch 'inahga/inahga-update-go-highlighting'
2022-04-11 19:54:48 +10:00
Johannes Altmanninger
019a73f4b9
rc i3: highlight sway's focused_tab_title option
...
Not sure if this should support sway-specific extensions but it doesn't hurt.
2022-04-09 15:29:54 +02:00
Ameer Ghani
f29ff7e3c6
rc/filetype/go: uintptr type missing syntax highlighting
2022-04-04 23:14:31 -04:00
Ameer Ghani
293a02bfa0
rc/filetype/go: add new go 1.18 predeclared identifiers
...
Go 1.18 introduces the `any` and `comparable` predeclared identifiers. Modify
the list of identifiers here, so syntax highlighting will catch these new
identifiers. See https://go.dev/ref/spec#Predeclared_identifiers .
2022-04-04 23:10:23 -04:00
in0ni
fbf1d98e58
Merge branch 'mawww:master' into master
2022-04-03 11:59:17 -04:00
Andrés González
f008d6dec2
Merge branch 'master' of github.com:in0ni/kakoune
2022-04-03 11:58:25 -04:00
Andrés González
5fdff9a8ff
explicitely name highlighters, remove comments that described them
2022-04-03 11:55:45 -04:00
Andrés González
1b9929bb73
remove comments for code used to generate lists of elements/units, explicitely name highlighters
2022-04-03 11:55:31 -04:00
Maxime Coste
eae8ea8a54
Merge remote-tracking branch 'krobelus/ini-hash-comments'
2022-03-21 21:04:55 +11:00
Maxime Coste
3667f8bb21
Merge branch 'master' of http://github.com/eko234/kakoune
2022-03-21 20:55:12 +11:00
Maxime Coste
5e7afdcd04
Merge remote-tracking branch 'CharlesGueunet/FixCMakeComment'
2022-03-21 20:49:42 +11:00
Charles Gueunet
2f1cb11194
CMake: fix comment highlight
2022-03-18 09:01:02 +01:00
in0ni
719f78349a
Update rc/filetype/twig.kak
...
fix typo
Co-authored-by: Screwtapello <thristian@gmail.com>
2022-03-17 08:57:58 -05:00
in0ni
e226c7ea2b
Update rc/filetype/twig.kak
...
fix typo
Co-authored-by: Screwtapello <thristian@gmail.com>
2022-03-17 08:57:40 -05:00
Andrés González
9ac6669e50
basic support for twig
2022-03-16 21:55:44 -05:00
Andrés González
eaea1d20f3
Improved indentation, keywords, and variables for scss
2022-03-16 21:55:29 -05:00
Andrés González
f2c11c0123
Improved support for commenting, mainly pulled from c-family.kak
2022-03-16 21:54:05 -05:00
Andrés González
ca68f73a36
Much better support for CSS, tested using varied examples from spec
2022-03-16 21:53:33 -05:00
Johannes Altmanninger
13948ecb94
rc diff: pass diff to diff-jump via stdin instead of env
...
Passing large diff buffers via the environment can quickly result in
the error "execve failed: Argument list too long". Use a pipe like
in format.kak
When running | (or <a-|>), Kakoune does not use %arg{@} to populate
"$@" (missing feature?). Work around this by moving %arg{@} to a
temporary register. Apparently $kak_quoted_reg_a will never be an
empty list, so work around that too.
When diff parsing fails, we take care to run "fail" in the calling
client, unlike :format (probably a bug in format.kak).
(This patch is best viewed while ignoring whitespace changes (diff -w))
2022-03-08 20:30:06 +01:00
Johannes Altmanninger
eaaf562ed1
rc diff: support absolute paths in diff-jump
...
Quick repro:
diff /dev/null $PWD/README.asciidoc -u | kak -e 'set-option buffer filetype diff'
Fixes #4531
2022-03-06 09:49:55 +01:00
Johannes Altmanninger
49de2b91c4
rc diff: bind diff-jump in all filetype=diff buffers, not just *.diff or *.patch files
...
Mapping in the filetype hook matches others like grep.kak and man.kak.
Since we map in buffer scope, git diff buffers will override diff-jump
with git-diff-goto-source.
This means that the diff-jump binding applies here:
diff -u "$1" "$2" | kak -e 'set buffer filetype diff'
Reported in: https://github.com/mawww/kakoune/issues/153#issuecomment-1030643854
2022-03-06 09:49:55 +01:00
Johannes Altmanninger
1c2e1e1090
rc diff: fix style
...
This line was unindented by accident (I was rushing..)
2022-03-06 09:49:55 +01:00
Maxime Coste
7061001728
Add a complete-command command to configure command completion
...
This makes it possible to change command completion in hooks and
paves the way to more flexibility in how custom commands can be
completed
2022-03-06 10:13:14 +11:00
Luis Alfonso Buelvas Betancourt
d6392e37c9
fennel filetype now highlights accumulate keyword
2022-02-22 17:13:38 -05:00
Johannes Altmanninger
3a856ef57b
rc conf: treat ini files as conf if they contain a #-comment
...
*.ini files traditionally use ; but for example the "foot" terminal's
foot.ini uses #. Add a hack to treat ini files as "conf" filetype
if they contain a #-comment (very slim chance of false positives).
This requires to explicitly set comment_line to the default #,
because we set the "ini" filetype earlier.
2022-02-19 17:31:55 +01:00
Johannes Altmanninger
cc6fe5ae61
Add conf filetype, for generic Unix configuration files
...
We set the "ini" filetype for files ending in one of "repo", "ini",
"cfg", "properties" or "desktop". Most of these actually use Unix
style comments (#) instead of DOS INI comments (;).
Introduce filetype "conf" which is similar to "ini" except it uses the
default # as comment_line string. Both Vim and Emacs have a filetype
(or Major mode) named "conf" (hence modeline-parse of "vim ft=conf"
will work).
Here are references that show that the new "conf" files use #-comments:
*.repo -- search for # in
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
*.cfg: don't know much about this one, but at least the motivating file uses #
https://github.com/buildout/buildout/blob/master/buildout.cfg
*.properties files:
https://en.wikipedia.org/wiki/.properties
*.desktop: per spec
https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s03.html#comments
2022-02-19 17:31:16 +01:00
SolitudeSF
1dc0a2eaf2
Fix elvish highlighter
2022-02-18 18:19:21 +02:00