Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit baddab3

Browse filesBrowse files
yuhan0bbatsov
authored andcommitted
Add tests and changelog
1 parent faee3ef commit baddab3
Copy full SHA for baddab3

File tree

2 files changed

+6
-0
lines changed
Filter options

2 files changed

+6
-0
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
* Fix `clojure-align` when called from `clojure-ts-mode` major mode buffers.
88
* [#671](https://github.com/clojure-emacs/clojure-mode/issues/671): Syntax highlighting for digits after the first in `%` args. (e.g. `%10`)
9+
- [#680](https://github.com/clojure-emacs/clojure-mode/issues/680): Change syntax class of ASCII control characters to punctuation, fixing situations where carriage returns were being interpreted as symbols
910

1011
# Changes
1112

‎test/clojure-mode-util-test.el

Copy file name to clipboardExpand all lines: test/clojure-mode-util-test.el
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@
163163
(with-clojure-buffer "(ns)(ns foo)"
164164
(expect (clojure-find-ns) :to-equal "foo"))
165165
(with-clojure-buffer "(ns )(ns foo)"
166+
(expect (clojure-find-ns) :to-equal "foo")))
167+
(it "should ignore carriage returns"
168+
(with-clojure-buffer "(ns \r\n foo)"
169+
(expect (clojure-find-ns) :to-equal "foo"))
170+
(with-clojure-buffer "(ns\r\n ^{:doc \"meta\r\n\"}\r\n foo\r\n)"
166171
(expect (clojure-find-ns) :to-equal "foo"))))
167172

168173
(describe "clojure-sort-ns"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.