Commit Graph

7165 Commits

Author SHA1 Message Date
Marijn Haverbeke 264ba931c4 [swift mode] Fix tokenizing of block comments
Closes https://github.com/codemirror/codemirror5/issues/6981
2022-09-06 15:15:02 +02:00
Marijn Haverbeke ccacc38263 [show-hint addon] Resize popup if it doesn't fit in the viewport
Issue https://github.com/codemirror/codemirror5/pull/6979
2022-08-26 18:17:39 +02:00
Marijn Haverbeke f1430486d9 [jinja2 mode] Remove tab
Issue https://github.com/codemirror/codemirror5/pull/6975
2022-08-26 12:20:21 +02:00
Marijn Haverbeke 0ade73a9ea [jinja2 mode] Remove trailing whitespace
Issue https://github.com/codemirror/codemirror5/pull/6975
2022-08-26 12:17:11 +02:00
Vladislav Voitenok b7460f6b8d
[jinja2 mode] Support line statements 2022-08-26 12:10:09 +02:00
Marijn Haverbeke 21141474f6 Mark version 5.65.8 2022-08-20 13:14:27 +02:00
Marijn Haverbeke 9232cb3750 [merge addon] Fix IE10 compatibility
By changing a function declaration to a variable declaration

Closes https://github.com/codemirror/codemirror5/issues/6976
2022-08-11 10:12:34 +02:00
coderaiser 3b15f70cf8
[real-world uses] Add Cloud Commander 2022-08-08 09:55:40 +02:00
Marijn Haverbeke 9670ccf3b1 Add missing closing paren 2022-08-01 15:54:31 +02:00
Marijn Haverbeke 84bb7bfc4e [python mode] Add exec and print to hintWords
Closes https://github.com/codemirror/codemirror5/issues/6969
2022-08-01 15:52:17 +02:00
Marijn Haverbeke 7ac872b0db [foldgutter addon] Recompute fold markers on mode change
Closes https://github.com/codemirror/codemirror5/issues/6968
2022-07-28 10:27:42 +02:00
Marijn Haverbeke 7710c7c8c3 Fix bug in input resetting during composition
Closes https://github.com/codemirror/codemirror5/issues/6893
2022-07-27 15:48:15 +02:00
Marijn Haverbeke fc0440bc75 Include direction override and isolate characters in default specialChars regexp
Closes https://github.com/codemirror/codemirror5/issues/6967
2022-07-22 08:38:26 +02:00
Marijn Haverbeke dc7e324c5c Mark version 5.65.7 2022-07-20 11:56:01 +02:00
Marijn Haverbeke 7a2106aed2 Add '5' to title of front and manual pages 2022-07-20 09:41:41 +02:00
Randy Luecke 9b34840545 Fix for new function name clashing with local variable. 2022-07-19 22:54:29 +02:00
Marijn Haverbeke fbe87a2a83 Link codemirror-vim from vim demo 2022-07-19 12:57:23 +02:00
Marijn Haverbeke 24c3a06e6b Fix doc(cm) to actually return a document 2022-07-19 10:32:28 +02:00
Marijn Haverbeke 139983f948 Upgrade blint 2022-07-19 10:24:11 +02:00
Marijn Haverbeke feed828066 Add keymap/vim.js to .gitignore 2022-07-19 10:23:57 +02:00
Marijn Haverbeke 02abcd2d01 Fix previous patch 2022-07-19 09:54:30 +02:00
Marijn Haverbeke 96010fcc72 Don't use global document/window
Closes https://github.com/codemirror/codemirror5/pull/6964
2022-07-19 09:52:04 +02:00
Harutyun Amirjanyan c651c21fb6
[vim bindings] Use code from codemirror-vim 2022-07-19 09:47:45 +02:00
Boris Verkhovskiy 638951ee8f [sql mode] Trino SQL 2022-07-18 17:00:58 +02:00
Boris Verkhovskiy c401c299ce
[sql mode] Support empty number literals 2022-07-13 19:53:39 +02:00
Jan T. Sott 482b7a4554
[nsis mode] add Target command 2022-07-13 00:58:06 +02:00
Boris Verkhovskiy d77d0b864d
[sql mode] Document other support values of sql modes 2022-07-13 00:56:57 +02:00
Bjarki Ágúst Guðmundsson 4ccf2bddfe
[runmode addon] Use textContent instead of innerHTML to clear elements
In general, assigning a plain string to the innerHTML property of an
element can cause XSS vulnerabilities, and is thus considered as a
violation by the Trusted Types web platform security mechanism. This
commit addresses two such violations in CodeMirror by replacing them
with semantically equivalent assignments to the textContent property.
This is currently a blocker for CodeMirror users that want to enforce
Trusted Types in their web application.
2022-07-09 12:54:38 +02:00
Bjarki Ágúst Guðmundsson a6fdd560c7
[tern addon] Make sure dialog text is HTML escaped
This addresses a potential XSS vulnerability caused by tern's
construction of inline HTML where text input is not escaped, which is
then passed to the openDialog function for rendering. The construction
is replaced with an equivalent DOM fragment construction, which
the openDialog API also supports.

This is currently a blocker for CodeMirror users that want to enforce
Trusted Types in their web application.
2022-07-09 12:53:36 +02:00
Marijn Haverbeke 52dc64004c Delete trailing whitespace 2022-07-01 07:53:51 +02:00
Pontus Granström 2e50c90658
[elm mode] Add support for line comments
This lets a user toggle comments with a keyboard shortcut when using codemirror to edit Elm code.
2022-07-01 07:41:44 +02:00
fzipp 8216951fbe [go mode] Add new builtin types `any` and `comparable`
Go 1.18 introduced two new predeclared identifiers: `any` and `comparable`:
https://go.dev/doc/go1.18#generics
2022-06-30 19:51:13 +02:00
kometenstaub 384438b1c2
[vim bindings] Add sentence option for around/inner text object operation 2022-06-27 11:39:59 +02:00
Marijn Haverbeke 571171d032 Only apply scroll hack on Chrome version 102, not newer ones 2022-06-27 08:00:39 +02:00
Marijn Haverbeke 5adf5942d7 Fix some remaining links to old repository 2022-06-27 08:00:39 +02:00
Marijn Haverbeke e7e1c87c59 Mark version 5.65.6 2022-06-27 08:00:38 +02:00
Erik Krogh Kristensen c722d1b4e2
[css mode] Fix the char ranges identifying valid colors 2022-06-24 19:43:44 +02:00
Faris Masad e94848f38f
Make sure v5 releases don't override latest on npm 2022-06-24 18:32:28 +02:00
Mark Boyes 5bc5321efa
[sparql mode] Add INTO keyword 2022-06-23 08:23:15 +02:00
Tim Down 64dfb17693
[vim bindings] Fix zb and z- scrolling with wrapped lines 2022-06-22 11:11:03 +02:00
Tim Down 511a0726bf
[vim bindings] Correct zb and z- key bindings being the wrong way round 2022-06-22 11:10:20 +02:00
José dBruxelles f5e456edc2 Fix link to v6 2022-06-16 22:00:08 +02:00
Yakov Manshin 2ca1993b1a
[swift mode] Support for Structured Concurrency keywords
Closes #6937
2022-06-13 10:25:29 +02:00
Marijn Haverbeke 7f488eb5c1 Adjust website and github links to include '5' 2022-06-08 09:58:57 +02:00
Marijn Haverbeke ad1a89a13a Update version banner, remove sponsor links 2022-06-08 09:28:08 +02:00
Marijn Haverbeke ff35dd5492 Avoid firing beforeCursorEnter twice for cursor selection
See https://discuss.codemirror.net/t/how-to-capture-or-emit-beforecursorenter/4478
2022-06-06 15:24:10 +02:00
Marijn Haverbeke 70572f115b [ruby mode] Don't add extra indentation on 'then'
Closes https://github.com/codemirror/CodeMirror/issues/6927
2022-06-03 08:29:22 +02:00
Marijn Haverbeke 898004f737 Use style.visibility to hide zero-width scrollbar
Since touching pointer-events triggers some kind of Chrome bug that prevents
the scrollbar from hiding itself.

See https://discuss.codemirror.net/t/cant-grab-vertical-scrollbar/4467
2022-06-02 10:49:45 +02:00
benjaminr-ps e6f456f450
[show-hint addon] Make sure the tooltip is placed to the left of the viewport
We have to prevent to render the hint tooltip popup to far to the left, which exceeds the viewport.

If it exceeds the viewport too much to the left, we fallback to zero position.
2022-05-31 12:14:06 +02:00
Marijn Haverbeke b6798cc3e2 Mark version 5.65.5 2022-05-30 11:58:15 +02:00