Frank LENORMAND
19f1754a2a
src json: Limit the recursion depth to 100
2019-11-17 09:27:46 +01:00
Frank LENORMAND
7cdbe1d3d2
src: Move JSON parsing code to its own file
...
The `json_ui.cc` file contained both data-parsing and UI-related
code. This commit moves the JSON parsing code to its own `json.cc`
file, to separate concerns, make compilation faster when changes are
made to either UI or parsing code, and make the parsing code more
accessible to fuzzers.
The signature of the following function:
```
auto parse_json(StringView json);
```
was changed to:
```
JsonResult parse_json(StringView json);
```
to avoid `auto` deduction issues at compile-time.
2019-11-17 09:27:46 +01:00
Maxime Coste
a7d3976a10
Fix typo
2019-11-13 08:58:15 +11:00
Maxime Coste
056294dd5a
Merge pull request #3199 from eraserhd/fix-test-freeze
...
Fix test suite freeze
2019-11-13 08:45:25 +11:00
Jason Felice
e712138ebd
Fix test suite freeze
...
The issue is that the `test/regression/2056-assert-on-small-window`
sent JSON UI input without waiting for for the JSON UI to be
initialized.
Closes #3196
2019-11-12 09:39:37 -05:00
Maxime Coste
e964b68ab8
Add support for selecting and exporting selections in display columns
...
Fixes #2724
2019-11-12 21:56:45 +11:00
Maxime Coste
7a8f57f97b
Add support for a -codepoint switch to the select command
2019-11-12 21:21:24 +11:00
Jason Felice
5fae16faef
Implement %val{selections_char_desc}
...
Fixes #3194
2019-11-12 20:54:32 +11:00
Maxime Coste
6eb820dc54
Fix use after free in enter_user_mode, use user.<name>
for modename
...
Fixes #3192
2019-11-12 08:54:49 +11: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
Maxime Coste
5060a4733a
Add mode information to next-key mode name
...
Currently expose an additional name, the format is up for
discussion.
Fixes #1855
Fixes #2569
Fixes #2672
2019-11-11 21:47:47 +11:00
pema99
43b8f1338b
Fix literal '"' in fsharp highlighting.
2019-11-11 06:25:37 +01:00
Maxime Coste
7438f23b9b
Merge remote-tracking branch 'lePerdu/gluon-lang'
2019-11-10 12:47:47 +11:00
Maxime Coste
8bbec3f170
Merge remote-tracking branch 'nfultz/nfultz/simple_color'
2019-11-10 12:39:59 +11:00
Maxime Coste
f119fb9524
Aggregatify ConcatView
2019-11-10 12:04:44 +11:00
Maxime Coste
e74fba9289
Merge remote-tracking branch 'eraserhd/cppcheck'
2019-11-10 12:03:34 +11:00
Maxime Coste
1713d1db7a
Add a root directory Makefile that forwards to src/ one
2019-11-10 11:14:56 +11:00
Jason Felice
87e5a2f512
Avoid copy constructing BufferCoord when comparing
2019-11-09 12:53:45 -05:00
Jason Felice
9692e491ac
Fix bad comparison when parsing OSI sequences
2019-11-09 12:53:45 -05:00
Jason Felice
c589f475a5
Add override
2019-11-09 12:53:45 -05:00
Jason Felice
d26bb0ce2b
Add static or const where useful
2019-11-09 12:53:45 -05:00
Jason Felice
49ca512733
Remove unused trim_whitespaces()
2019-11-09 12:53:45 -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
Maxime Coste
d85259f801
Merge remote-tracking branch 'eraserhd/selection-list-cleanup'
2019-11-09 08:50:09 +11:00
Maxime Coste
c11fc7ea74
Merge remote-tracking branch 'Delapouite/WrapMarker'
2019-11-09 08:33:12 +11:00
Maxime Coste
8e63aa1548
Check that stdout is a tty in ncurses ui
2019-11-09 08:19:45 +11:00
Frank LENORMAND
a7bf625236
rc modeline: Support spelling language options
2019-11-08 17:56:36 +01:00
pema99
fa1b0bd179
Pema Malling Copyright Waiver
...
I dedicate any and all copyright interest in this software to the
public domain. I make this dedication for the benefit of the public at
large and to the detriment of my heirs and successors. I intend this
dedication to be an overt act of relinquishment in perpetuity of all
present and future rights to this software under copyright law.
2019-11-08 13:02:16 +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
Jason Felice
c9fce9f83d
Merge selection list parsing into selection_list_from_strings
2019-11-07 14:51:04 -05:00
Delapouite
db1d013422
doc: add WrapMarker in faces and changelog
2019-11-07 11:09:48 +01:00
Maxime Coste
9d700344f7
Merge remote-tracking branch 'lenormf/colorscheme-kaleidoscope-light'
2019-11-07 20:17:56 +11:00
Maxime Coste
d23544f6fd
Merge remote-tracking branch 'Delapouite/doc-completers'
2019-11-07 20:17:33 +11:00
Maxime Coste
d5f2744e59
Merge remote-tracking branch 'JJK96/xml'
2019-11-07 20:16:58 +11:00
Maxime Coste
1c5a7d839c
Merge remote-tracking branch 'lenormf/fix-scratch-doc'
2019-11-07 20:16:06 +11:00
Maxime Coste
f794a35de3
Merge remote-tracking branch 'Delapouite/parameterdesc'
2019-11-07 20:15:14 +11:00
Maxime Coste
6d500bb8b0
Merge remote-tracking branch 'lenormf/colorscheme-kaleidoscope-dark'
2019-11-07 20:14:16 +11:00
Maxime Coste
bd81dcc4c3
Merge remote-tracking branch 'lenormf/fix-colorscheme-fail'
2019-11-07 20:13:47 +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
4a954839fa
Merge remote-tracking branch 'Delapouite/doc-semicolon'
2019-11-07 20:04:58 +11:00
Maxime Coste
3e7301ede7
Support \x and \u escapes in regex character classes
...
Change \u to use 6 digits to cover the full unicode range.
Fixes #3172
2019-11-06 20:48:48 +11:00
Frank LENORMAND
0c965c0bbd
colors: Implement a colorblind-friendly dark colorscheme
2019-11-05 22:44:45 +01:00
Frank LENORMAND
3816f1fa43
src: Make sure clients connect from a TTY
...
Fixes #3159
2019-11-05 20:24:08 +01:00
Frank LENORMAND
83ee415e12
colors kaleidoscope-light: Set the wrap marker face
2019-11-05 09:01:24 +01:00