Maxime Coste
281890ea7a
Merge remote-tracking branch 'nochiel/nochiel-screen'
2017-11-16 12:56:09 +08:00
Nicholas Ochiel
133fcb0ce4
code review: typos.
2017-11-15 17:42:37 +03:00
Nicholas Ochiel
d9a574acd5
Integration with GNU screen; based on tmux.kak
...
- Hack: kak sets `/proc/self/fd/0 -> /dev/null`. Get the client process tty because Screen needs to know the controlling terminal. Else Screen will use the last known tty and will open new windows on a different terminal if one is connected.
2017-11-15 06:10:26 +03:00
Maxime Coste
77b0ee1e19
Merge remote-tracking branch 'lenormf/extend-python-highlighters'
2017-11-14 18:08:27 +08:00
Frank LENORMAND
105d7a1276
rc python: Extend highlighted keywords and numbers
2017-11-14 12:50:20 +03:00
Maxime Coste
2ab9f65b36
c-family.kak: Use <a-S> in various auto indent hooks
2017-11-14 13:32:46 +08:00
Maxime Coste
9c964e97f0
c-family.kak: Highlight character literals later
...
That way it overrides integer literal highlighters in the case where
they conflict.
2017-11-14 11:45:30 +08:00
fsub
ee695ecf95
c-familiy.kak: improve highlighting of C++ literals
2017-11-12 18:16:20 +01:00
Maxime Coste
add7f7e76b
Revert "c-family.kak: Remove invalid 'compl' keyword from C++ highlight"
...
This reverts commit f8dee65d6e
.
compl is actually the alternate keyword for `~`.
2017-11-11 09:54:32 +08:00
Maxime Coste
f8dee65d6e
c-family.kak: Remove invalid 'compl' keyword from C++ highlight
2017-11-09 10:43:46 +08:00
Maxime Coste
5791632a98
c-family.kak: use space separated words list
2017-11-09 10:25:03 +08:00
Maxime Coste
a131edb9b3
Merge remote-tracking branch 'fsub/c-family'
2017-11-09 10:09:58 +08:00
Maxime Coste
8aa35c0724
doc.kak: Use a github compatible anchor generation
...
Convert session names to lowercase and replace spaces with minus
to generate anchor names.
2017-11-08 20:15:46 +08:00
Maxime Coste
b8fdcff7b0
doc.kak: anchor/section completion support
2017-11-08 17:20:37 +08:00
Maxime Coste
b63f16e7a2
doc.kak: Support anchors and internal links
...
Underline links, support jumping to a specific anchor either in
the current page or another one, use those new features in some
pages.
2017-11-08 16:32:49 +08:00
Maxime Coste
d6b5240bdf
doc.kak: Remove unused lines
2017-11-06 20:53:50 +08:00
Maxime Coste
73182de20c
doc.kak: Support jumping on links using <ret>
2017-11-06 20:52:24 +08:00
Maxime Coste
19cda837ff
doc.kak: Simplify completion script
2017-11-06 20:47:12 +08:00
Delapouite
29e2a73638
Fix lint.kak evaluate-commands → eval
2017-11-06 10:51:55 +01:00
fsub
db15f7adc5
c-family.kak: Add missing C++ keywords, attributes, and types
2017-11-05 10:11:59 +01:00
fsub
1ad83745c2
c-family.kak: Sort keywords, attributes, values, and decorators
2017-11-05 10:11:59 +01:00
Maxime Coste
b5de3064e0
Merge remote-tracking branch 'lenormf/fix-tupfile'
2017-11-05 12:22:18 +08:00
Tim Allen
f9351d65eb
rust.kak: Support Rust's documentation comments.
...
As well as ordinary `//` line-comments, Rust regards `///` comments
as documentation applying to the following item, and `//!` comments as
documentation applying to the enclosing item, so we should copy those
to new lines, too.
2017-11-04 21:54:48 +11:00
Frank LENORMAND
61ab3a1d26
rc: Fix Tupfile
highlighting
2017-11-04 10:56:20 +03:00
Maxime Coste
9b216e0e79
Merge remote-tracking branch 'lenormf/fix-rc-aliases'
2017-11-03 19:32:30 +08:00
Frank LENORMAND
9127ed0d55
src rc: Rename exec
/eval
into execute-keys
/evaluate-commands
2017-11-03 11:09:45 +03:00
Frank LENORMAND
c9b280b712
rc: Don't use command aliases to highlight keywords properly
2017-11-03 10:34:41 +03:00
Kylie McClain
79f725a558
sh: support mksh
2017-11-02 23:23:54 -04:00
Maxime Coste
b3daf6b746
doc.kak: Support rendering _italic_ text as well
2017-11-02 17:42:16 +08:00
Maxime Coste
4fabba3d12
doc.kak: Render documentation internally instead of relying on man
...
doc.kak now behaves as a basic asciidoc renderer. Asciidoc is unfortunately
still a dependency to generate the manpage of the `kak` command.
2017-11-02 10:03:24 +08:00
Maxime Coste
90865b65cd
asciidoc.kak: Highlight ^=+
syntax sections
2017-11-02 09:52:18 +08:00
Maxime Coste
424b2389cb
kakrc.kak: Fix highlighting of key words at start of buffer
2017-11-02 01:28:37 +08:00
Maxime Coste
5e6077acc2
html.kak: Change </...> align hook to only run after inserting '>'
...
Improve the hook to support nesting of tags as well.
2017-10-30 17:04:54 +11:00
Maxime Coste
c8257a58a5
kakrc.kak: set '-' as an additional word char
2017-10-28 13:43:04 +08:00
Maxime Coste
d7671f0cdf
kakrc.kak: Fix static word definition
2017-10-28 13:43:04 +08:00
Maxime Coste
d49555fc75
Move highlighters into Scopes
...
That means we can now have highlighters active at global, buffer, and
window scope. The add-highlighter and remove-highlighter syntax changed
to take the parent path (scope/group/...) as a mandatory argument,
superseeding the previous -group switch.
2017-10-28 13:43:04 +08:00
Maxime Coste
c95bd83ea1
haskell.kak: remove complex lookarounds
...
Highlighting is going to be slightly less correct, but we get rid
of the last incompatible regex in rc/
2017-10-25 10:29:27 +08:00
Maxime Coste
d09924d24b
asciidoc.kak: use a more tolerant block regex for
...
Get rid of the nasty backreference we were relying on.
2017-10-25 10:29:27 +08:00
Maxime Coste
591ddb86e3
markdown.kak: Remove fenced block support from
...
Its not in the spec, except for code blocks that we handle differently
anyway. More importantly it currently relies on backreference.
2017-10-25 10:29:11 +08:00
Maxime Coste
7dc800c213
Simplify lookaround use in moon.kak
...
(?=[A-Z]\w*) is strictly the same as (?=[A-Z]) as \w* will always
at least match an empty string.
2017-10-25 10:29:11 +08:00
Maxime Coste
870d2d22d7
haskell.kak: Remove some complex lookarounds
2017-10-25 10:28:59 +08:00
Maxime Coste
0fa59e5fd2
rc/: Tweak some regexes to be compatible with our impl limitations
...
The upcoming custom implementation does not support arbitrary lookarounds,
and other advanced regex features. Simplify the regexes to avoid those.
2017-10-25 10:27:39 +08:00
Maxime Coste
bf6e5daa08
Use stricter regex syntax
...
boost regex tolerates non-escaped special characters, and escaped
non-special characters. Standardize on stricter syntax, where
special characters must be escaped, and non-special characters must
not.
2017-10-25 10:27:39 +08:00
Maxime Coste
80d661e6a7
rc/: More consistent uses of regex syntax
...
Always use \A \z for subject start/end, always \b for word boundaries
2017-10-25 10:27:25 +08:00
Maxime Coste
30ce5a0055
Merge remote-tracking branch 'nochiel/nochiel-modelines'
2017-10-23 16:34:17 +08:00
Maxime Coste
214f321951
Merge remote-tracking branch 'danr/Fix-introduced-mistake-in-kakrc-highlighting'
2017-10-23 16:33:26 +08:00
Maxime Coste
6d65d8e778
kakrc.kak: refactor grammar handling
2017-10-23 10:56:45 +08:00
Dan Rosén
577d84217a
Fix introduced mistake in kakrc highlighting
2017-10-22 01:23:12 +02:00
Nicholas Ochiel
d168c75002
vim modeline regex should accept not one but "at least one" whitespace.
2017-10-21 21:04:39 +03:00
Maxime Coste
6740e3cc0c
Add some more keywords to kakrc highlighting
2017-10-21 18:48:35 +08:00