Skip to content

Releases: codemirror/codemirror5

5.35.0

20 Feb 08:58
5.35.0

Choose a tag to compare

Version 5.35.0

Bug fixes

Fix problem where selection undo might change read-only documents.

Fix crash when calling addLineWidget on a document that has no attached editor.

searchcursor addon: Fix behavior of ^ in multiline regexp mode.

match-highlighter addon: Fix problem with matching words that have regexp special syntax in them.

sublime bindings: Fix addCursorToSelection for short lines.

javascript mode: Support TypeScript intersection types, dynamic import.

stex mode: Fix parsing of \( \) delimiters, recognize more atom arguments.

haskell mode: Highlight more builtins, support <* and *>.

sql mode: Make it possible to disable backslash escapes in strings for dialects that don't have them, do this for MS SQL.

dockerfile mode: Highlight strings and ports, recognize more instructions.

New features

vim bindings: Support alternative delimiters in replace command.

5.34.0

29 Jan 12:15
5.34.0

Choose a tag to compare

Version 5.34.0

Bug fixes

markdown mode: Fix a problem where inline styles would persist across list items.

sublime bindings: Fix the toggleBookmark command.

closebrackets addon: Improve behavior when closing triple quotes.

xml-fold addon: Fix folding of line-broken XML tags.

shell mode: Better handling of nested quoting.

javascript-lint addon: Clean up and simplify.

matchbrackets addon: Fix support for multiple editors at the same time.

New features

New themes: oceanic-next and shadowfox.

5.33.0

21 Dec 14:01
5.33.0

Choose a tag to compare

Version 5.33.0

Bug fixes

lint addon: Make updates more efficient.

css mode: The mode is now properly case-insensitive.

continuelist addon: Fix broken handling of unordered lists introduced in previous release.

swift and scala modes: Support nested block comments.

mllike mode: Improve OCaml support.

sublime bindings: Use the proper key bindings for addCursorToNextLine and addCursorToPrevLine.

New features

jsx mode: Support JSX fragments.

closetag addon: Add an option to disable auto-indenting.

5.32.0

22 Nov 09:12
5.32.0

Choose a tag to compare

Version 5.32.0

Bug fixes

Increase contrast on default bracket-matching colors.

javascript mode: Recognize TypeScript type parameters for calls, type guards, and type parameter defaults. Improve handling of enum and module keywords.

comment addon: Fix bug when uncommenting a comment that spans all but the last selected line.

searchcursor addon: Fix bug in case folding.

emacs bindings: Prevent single-character deletions from resetting the kill ring.

closebrackets addon: Tweak quote matching behavior.

New features

continuelist addon: Increment ordered list numbers when adding one.

5.31.0

20 Oct 15:37
5.31.0

Choose a tag to compare

Version 5.31.0

Bug fixes

Further improve selection drawing and cursor motion in right-to-left documents.

vim bindings: Fix ctrl-w behavior, support quote-dot and backtick-dot marks, make the wide cursor visible in contentEditable input mode.

continuecomment addon: Fix bug when pressing enter after a single-line block comment.

markdown mode: Fix issue with leaving indented fenced code blocks.

javascript mode: Fix bad parsing of operators without spaces between them. Fix some corner cases around semicolon insertion and regexps.

New features

Modes added with addOverlay now have access to a baseToken method on their input stream, giving access to the tokens of the underlying mode.

5.30.0

20 Sep 09:28
5.30.0

Choose a tag to compare

Version 5.30.0

Bug fixes

Fixed a number of issues with drawing right-to-left selections and mouse selection in bidirectional text.

search addon: Fix crash when restarting search after doing empty search.

mark-selection addon: Fix off-by-one bug.

tern addon: Fix bad request made when editing at the bottom of a large document.

javascript mode: Improve parsing in a number of corner cases.

markdown mode: Fix crash when a sub-mode doesn't support indentation, allow uppercase X in task lists.

gfm mode: Don't highlight SHA1 'hashes' without numbers to avoid false positives.

soy mode: Support injected data and @param in comments.

New features

simple mode addon: Allow groups in regexps when token isn't an array.

5.29.0

24 Aug 11:47
5.29.0

Choose a tag to compare

Version 5.29.0

Bug fixes

Fix crash in contentEditable input style when editing near a bookmark.

Make sure change origins are preserved when splitting changes on read-only marks.

javascript mode: More support for TypeScript syntax.

d mode: Support nested comments.

python mode: Improve tokenizing of operators.

markdown mode: Further improve CommonMark conformance.

css mode: Don't run comment tokens through the mode's state machine.

shell mode: Allow strings to span lines.

search addon: Fix crash in persistent search when extraKeys is null.

5.28.0

21 Jul 10:21
5.28.0

Choose a tag to compare

Version 5.28.0

Bug fixes

Fix copying of, or replacing editor content with, a single dash character when copying a big selection in some corner cases.

Make "goLineLeft"/"goLineRight" behave better on wrapped lines.

sql mode: Fix tokenizing of multi-dot operator and allow digits in subfield names.

searchcursor addon: Fix infinite loop on some composed character inputs.

markdown mode: Make list parsing more CommonMark-compliant.

gfm mode: Highlight colon syntax for emoji.

New features

Expose startOperation and endOperation for explicit operation management.

sublime bindings: Add extend-selection (Ctrl-Alt- or Cmd-Shift-Up/Down).

5.27.4

29 Jun 13:04
5.27.4

Choose a tag to compare

Version 5.27.4

Bug fixes

Fix crash when using mode lookahead.

markdown mode: Don't block inner mode's indentation support.

5.27.2

22 Jun 20:20
5.27.2

Choose a tag to compare

Version 5.27.2

Bug fixes

Fix crash in the simple mode addon.