Hugo Musso Gualandi
d3d3c77ab9
lua.kak: highlight Lua 5.4 variable attributes
2021-08-04 13:24:16 -03:00
Hugo Musso Gualandi
3621a98170
lua.kak: Treat "local" as a normal keyword
2021-08-04 13:24:16 -03:00
Hugo Musso Gualandi
ceb3f55f3c
lua.kak: the builtin is called _ENV, not _E
...
The Lua highlighting was highlighing `_E` instead of `_ENV`
2021-08-04 13:24:16 -03:00
Hugo Musso Gualandi
43d9f59fda
lua.kak: keyword should have higher priority than function call
...
Currently, the "return" in `return {}` is highlighted as a function call, instead of being highlighted as a keyword
2021-08-04 13:24:16 -03:00
Maxime Coste
52087a506d
Merge remote-tracking branch 'hugomg/rockspec-highlighting'
2021-07-30 07:37:36 +10:00
Maxime Coste
8a7f8f67be
Merge remote-tracking branch 'hugomg/lua-comment-insert-indent'
2021-07-30 07:37:01 +10:00
Hugo Musso Gualandi
52f7999705
Recognize ".rockspec" file extension as a Lua file
...
rockspec files are used by [Luarocks](https://luarocks.org/ ), the
most prominent package manager for Lua. Despite the different file
extension, these files are actually Lua files and should be syntax
highlighted as such.
For what it is worth, Neovim also does the same thing that I am doing in
this commit. They recognize both ".lua" and ".rockspec" as being Lua
files (and no other extensions, as far as I know).
2021-07-26 17:41:00 -03:00
Tilman List
807be115b2
make pascal filetype compatible with bash
...
When using bash, the whitespaces before the delimiting identifier `EOF`
cause an error as well as a missing `\` before `$`.
2021-07-17 20:01:12 +02:00
Hugo Musso Gualandi
f440a1c109
Lua: insert comment prefix *after* the indent
...
This fixes a bug in how the Lua scripts handle new comment lines.
Currently if we have a comment that is indented, when we add a new line
it inserts the `--` prefix before the automatic indentation.
```
--ABC
-- XYZ
```
After the fix, it correctly inserts the comment prefix after the
indentation:
```
--ABC
--XYZ
```
The solution I used is inspired by the ruby.kak script.
2021-07-13 13:28:30 -03:00
Maxime Coste
699050d2d6
Merge remote-tracking branch 'alexherbo2/add-missing-eruby-indent-group'
2021-07-07 19:15:28 +10:00
Maxime Coste
8c2ee492fe
Merge remote-tracking branch 'dmerejkowsky/dart-extension-keyword'
2021-07-07 19:13:29 +10:00
Maxime Coste
5b7d544299
Merge remote-tracking branch 'Frojdholm/markdown-codeblock-highlighting'
2021-07-07 19:09:05 +10:00
Hampus Fröjdholm
e0731b70cf
Improve highlighting of markdown lists
...
Removes the inline code highlighter for lists to improve
readability in indented lists.
2021-07-06 13:32:23 +02:00
Dimitri Merejkowsky
0c1e89a010
dart: add extension
to the list of keywords
2021-07-01 16:03:30 +02:00
Hristo Staykov
69c9d00569
rc swift: Add open
and internal
keywords
2021-06-24 14:29:10 +03:00
Taupiqueur
59d39c60d7
Add missing eRuby indent group
2021-06-15 14:30:35 +02:00
Maxime Coste
8fdda6d980
Merge remote-tracking branch 'greenfork/improve-elixir-hooks'
2021-06-15 20:48:06 +10:00
Maxime Coste
682426bf7b
Merge remote-tracking branch 'greenfork/improve-ruby-hooks'
2021-06-15 20:47:26 +10:00
Maxime Coste
a1a924f9a5
Merge remote-tracking branch 'ktiy/zig'
2021-06-15 20:45:43 +10:00
c piapiac
bdd7a956f3
rc zig: auto-insert multiline string prefix on newline
2021-06-12 03:38:27 -07:00
c piapiac
73910efce8
rc zig: 0.8.0 language changes
...
* adds nosuspend keyword
* adds @extern builtin
* removes @TagType builtin
2021-06-12 03:26:32 -07:00
Dmitry Matveyev
2f22fef5bd
Rename exec->execute-keys for consistency
2021-06-06 14:29:51 +06:00
Dmitry Matveyev
a65501a1d9
Rename exec->execute-keys for consistency
2021-06-06 14:28:28 +06:00
Dmitry Matveyev
0b1654b0cf
Better comment inserting tests and fix implementation
2021-06-06 14:13:34 +06:00
Dmitry Matveyev
167cffb3da
Better comment inserting tests and fix implementation
2021-06-06 14:08:40 +06:00
Dmitry Matveyev
8867e40929
Fix elixir copying comment # sign
...
Elixir uses # for comments, not --.
Implementation is copied from Nim.
2021-06-06 01:32:56 +06:00
Dmitry Matveyev
0f49e7375e
Add auto-inserting of "end" keyword to Elixir
...
fixup! Add auto-inserting of "end" keyword to Elixir
2021-06-06 01:32:53 +06:00
Dmitry Matveyev
fcc04384d1
Fix Ruby <ret> mid-comment
...
Implementation is copied from Nim.
2021-06-06 00:38:36 +06:00
Dmitry Matveyev
02e625e8fb
Remove electric behavior for end keyword
...
Correctly indentint on "end" keyword seems very hard,
it is simpler to remove it. And we already insert "end"
in ruby-insert-on-new-line hook, so the removal shouldn't
hurt too much.
2021-06-06 00:30:50 +06:00
Răzvan C. Rădulescu
c24cbebe47
Fix purescript comments and keywords
2021-05-30 15:39:58 +03:00
Maxime Coste
d758bbf09b
Merge remote-tracking branch 'yerlaser/patch-1'
2021-05-28 20:55:25 +10:00
Maxime Coste
b37a282845
Merge remote-tracking branch 'yerlaser/patch-2'
2021-05-28 20:53:18 +10:00
raingloom
51c9811c7a
add sps and sls file extensions for scheme
...
These extensions are the ones used automatically by the Akku package
manager when generating a new package, so they should probably be
added.
2021-05-28 20:51:06 +10:00
Taupiqueur
5ba51b377a
Fix eRuby detection
2021-05-24 13:18:50 +02:00
Yerlan
48a07888de
Fixing strings in Dart
...
1. Deleted back-tick strings which are not a valid Dart syntax
2. Added string interpolation for ${}
3. NOT adding string interpolation for $var as this is considered a bad practice
2021-05-19 22:44:27 +02:00
Yerlan
a390a6f356
Highlight extra chars in literal
...
This commit adds highlighting characters other than the first with red color helping to get immediate feedback of the syntax error.
This helps those who come from languagles like JS where single quotes also denote multi-character strings.
2021-05-18 20:51:52 +02:00
Maxime Coste
67e5ecc816
Merge branch 'perl_allow_strref' of http://github.com/fennewald/kakoune
2021-05-18 21:05:35 +10:00
Maxime Coste
db24a78e2c
Merge remote-tracking branch 'dead10ck/fix-rust-solarized'
2021-05-18 21:02:10 +10:00
Maxime Coste
b9c02091a7
Merge remote-tracking branch 'hristost/hristost/swift-extension-keyword'
2021-05-18 21:01:14 +10:00
Yerlan
0dcbf52216
Java: add highlighting for char literal
2021-05-17 21:15:30 +02:00
Yerlan
c483d65594
Simplifying regex
...
As suggested by @krobelus.
However, I figured that highlighting characters as strings is not correct as they are more like values.
2021-05-17 20:54:29 +02:00
Yerlan
c7f7e01bba
Kotlin: string interpolation and character literal
...
Adding highlighting for string interpolation inside double-quoted strings and character literals inside single-quotes.
Avoiding string interpolation in the form of $var as this is considered bad practice.
2021-05-17 20:45:48 +02:00
fennewald
eb205cf3c2
Allowed for references of strings
2021-05-17 14:30:33 -04:00
Yerlan
dff23f2f3f
Kotlin: Add highlight for character literals
2021-05-17 18:44:10 +02:00
hss
92800c07ef
rc swift: highlight "extension" and "fileprivate" keywords
2021-05-13 23:44:22 -04:00
Skyler Hawthorne
fb04102fe3
add TODO comment highlighting
2021-05-02 20:38:42 -04:00
Maxime Coste
7090be59df
Merge remote-tracking branch 'occivink/c-family-quote-variable'
2021-05-01 14:42:03 +10:00
Skyler Hawthorne
a25ef2bd6d
fix rust pub highlight
2021-05-01 00:35:56 -04:00
Olivier Perret
0bcbcef7dc
c-family.kak: properly quote shell variable
...
This will fail with filenames with spaces otherwise
2021-04-30 11:53:18 +02:00
Michał Kruszewski
b8aae26586
[VHDL] Add 'character' to types highlight.
2021-04-29 13:38:15 +02:00