SolitudeSF
fe66b8a390
rc nim: update suffix spec
2021-03-24 17:11:26 +02:00
Maxime Coste
d8fbe3105d
Merge branch 'lua-auto-indent-improvement' of http://github.com/cipharius/kakoune
2021-03-23 19:57:46 +11:00
cipharius
78a0b5e4c7
Improves Lua auto indent and end insertion
...
Current solution makes it difficult to use common Lua practices of having one-liner if statements and using anonymous functions.
New solution prevents auto-indentation and end insertion, if the previous line contains an "end" keyword.
It does not attempt to match each structure with corresponding end, since using multiple end keywords in single line is a very rare occurance in Lua.
2021-03-23 10:36:05 +02:00
Lennard Hofmann
8d24041c1a
rc markdown: Fix HTML highlighting in inline code
...
Because the HTML highlighter was higher up in the hierarchy than the code
highlighter, it took precedence. I fixed it by making it an inline region.
Using my new knowledge of "inline" I was able to remove one line of code.
Fixes #4091
2021-03-21 09:52:00 +01:00
SeerLite
c0e8dceb5d
js: Highlight special variables at start of file
2021-03-17 23:59:05 -03:00
Maxime Coste
c12d1c16b7
Merge remote-tracking branch 'hristost/hristost/swift-multiline-strings'
2021-03-11 08:02:53 +11:00
Maxime Coste
835eaf5495
Merge remote-tracking branch 'pickfire/rust-indent'
2021-03-11 07:51:08 +11:00
hss
566143ac6d
rc swift: highlight multiline strings
2021-03-07 21:26:31 -05:00
Ivan Tham
ebe7f82bb2
Support rust visibility for enum and others
2021-03-07 14:22:43 +08:00
Ivan Tham
8df5621334
Support dedent with rust fn qualifiers
2021-03-07 14:12:01 +08:00
Maxime Coste
60c44e1623
Merge remote-tracking branch 'andreyorst/fennel-filetype'
2021-03-02 21:13:25 +11:00
Andrey Listopadov
877cc9cf88
add fennel filetype
2021-03-01 19:51:36 +03:00
Maxime Coste
ca5e6f835c
Merge remote-tracking branch 'gf3/graphql-syntax'
2021-03-01 08:27:36 +11:00
Maxime Coste
a0f567f5e6
Merge remote-tracking branch 'm-kru/troff_comment'
2021-03-01 08:26:02 +11:00
Isa Cichon
0fc91b9576
Fix usages of ModeChange hook
...
hook param always begins with either push: or pop:
Fixes #4078
2021-02-28 21:07:21 +01:00
Michał Kruszewski
b7def7350c
Add comment highlighter for troff files.
...
Add comment highlighter for troff files.
Also highlight the end of the macro definition.
2021-02-25 20:18:10 +01:00
Maxime Coste
70548ecc14
Merge remote-tracking branch 'rwpeterson/juliahl'
2021-02-25 20:23:10 +11:00
Bob Peterson
c457c2b1c1
rc julia: add multiline comments
2021-02-21 19:20:03 +01:00
Ivan Tham
4e594e034a
Dedent rust await function with ?
2021-02-17 01:17:17 +08:00
Ivan Tham
049591f6b4
Dedent rust empty match
2021-02-17 01:17:14 +08:00
Maxime Coste
fb30d3751c
Merge remote-tracking branch 'krobelus/yaml-comment'
2021-02-11 20:30:34 +11:00
Maxime Coste
1440db3f89
Merge remote-tracking branch 'krobelus/rest-leaked-code-highlighting'
2021-02-11 20:29:43 +11:00
Johannes Altmanninger
7ddaf071c7
rc java: highlight byte/short/long primitive types
2021-02-10 21:09:30 +01:00
Johannes Altmanninger
41059b3f0c
rc yaml: "#" inside a word is not a comment
2021-02-10 21:09:25 +01:00
Johannes Altmanninger
cfae4dda91
rc restructuredtext: don't highlight first character of next line as code
...
Reproduce by creating a *.rst buffer with the text below. The "N" used to
be highlighted as code.
::
code
Not code
2021-02-10 21:09:16 +01:00
Maxime Coste
69f1c8cae5
Merge remote-tracking branch 'Ordoviz/markdown'
2021-01-28 21:02:47 +11:00
Lennard Hofmann
61fabee03f
rc markdown: Highlight HTML tags
2021-01-19 15:42:37 +01:00
Maxime Coste
2578759252
Merge remote-tracking branch 'chambln/pfm'
2021-01-19 20:55:03 +11:00
Maxime Coste
86997bfa09
Merge remote-tracking branch 'SeerLite/js-multiline-division'
2021-01-19 20:54:32 +11:00
Maxime Coste
5b7048dc34
Merge remote-tracking branch 'ifreund/meson-fix'
2021-01-19 20:54:25 +11:00
Isaac Freund
033b55c3ac
zig.kak: fix highlighting of empty doc comment
...
If a line contains three slashes directly followed by a new line, the
next line is also erroneously highlighted as a doc comment currently.
Using a lookahead instead fixes this.
2021-01-18 00:44:32 +01:00
Gianni Chiappetta
fe3f8d2271
chore(rc): support nested field strings in graphql
2021-01-14 15:46:50 -05:00
Gianni Chiappetta
69a152d680
chore(rc): change graphql block delimiters to support better regexs
2021-01-14 11:40:17 -05:00
Gianni Chiappetta
ec80d83e71
feat(rc): improve graphql field arguments highlighter
2021-01-13 21:37:08 -05:00
Gianni Chiappetta
d8f65bd0ec
feat(rc): match .graphqls
file extension as graphql filetype
2021-01-13 21:31:29 -05:00
Gianni Chiappetta
1c639f7810
feat(rc): improve graphql syntax highlighters
2021-01-13 21:29:03 -05:00
Isaac Freund
233b990275
meson: improve highlighting, add static words
...
Now all functions are highlighted and builtins are highlighted
with their own face.
2021-01-13 15:44:38 +01:00
SeerLite
569267b18d
rc js: Correctly highlight multiline division.
2021-01-11 13:06:38 -03:00
Gregory Chamberlain
a49b1c4996
Adjust markdown code fences filetype regex
...
This highlighter (line 50 of markdown.kak) looks for the filetype
specified by the author at the top of the code fence, e.g.
``` python
print("hello")
```
and highlights the code within using Kakoune's relevant highlighter --
in this case Python.
Some flavours of markdown use curly braces and other characters in the
first line such as the following:
``` {=python}
print("hello")
```
Previously Kakoune recognised `{=python}` but not `{.python}`. The latter
is Pandoc's flavour of markdown. This patch adjusts the regex patterns
to recognise the dot notation as well.
2021-01-08 10:24:04 +00:00
Lennard Hofmann
f65d5210f8
rc markdown: Prevent underscores in URLs cause italic highlighting
...
Create regions to achieve that. Add support for inline links.
2021-01-05 18:51:37 +01:00
Maxime Coste
c8378eb7f2
Merge remote-tracking branch 'Ordoviz/pascal'
2021-01-03 11:28:11 +11:00
Lennard Hofmann
3eabeac3c9
Add Pascal/Delphi language support
2020-12-29 12:20:33 +01:00
Maxime Coste
74b6c20a0d
Merge remote-tracking branch 'pickfire/rust-indent-bracket'
2020-12-21 09:00:35 +11:00
Maxime Coste
ec41a93c35
Merge remote-tracking branch 'greneholt/ruby-syntax'
2020-12-21 08:55:56 +11:00
Ivan Tham
1965b909e1
Rust dedent after .await
2020-12-17 20:07:44 +08:00
Ivan Tham
ffbdcaa95c
Rust handle [ indent like { and (
2020-12-17 11:19:23 +08:00
Maxime Coste
5849b860bd
Merge remote-tracking branch 'ifreund/zig-syntax'
2020-12-05 10:50:05 +11:00
Isaac Freund
698b028f83
zig: highlight escapes in strings, update to 0.7.0
2020-11-23 19:03:53 +01:00
Michał Kruszewski
4cb9a46f2b
Python: change face for documentation to documentation.
2020-11-23 07:31:56 +01:00
Maxime Coste
14f7d2637c
Fix test and re-add triple_string support in python highlighting
...
Triple strings are now distinct from docstrings, triple strings
only preceeded by blanks on the line are considered docstrings.
Avoid highlighting of the closing marker using a lookahead, this
is not fully correct as it will break on a double quote triple
docstring containing a single quote triple string but that seems
improbable enough; if we encounter this in the wild we can split
the two docstring formats into separate regions.
2020-11-23 08:45:59 +11:00