Skip to content

Commit 7073c84

Browse files
committed
[Fix #394] Declare # with prefix syntax class
1 parent 3e5652c commit 7073c84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Bugs fixed
66

7+
* [#394](https://github.com/clojure-emacs/clojure-mode/issues/394): `#` character now has prefix syntax class.
78
* Fixed indentation of `definterface` to match that of `defprotocol`.
89
* [#389](https://github.com/clojure-emacs/clojure-mode/issues/389): Fixed the indentation of `defrecord` and `deftype` multiple airity protocol forms.
910

clojure-mode.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,14 @@ Out-of-the box clojure-mode understands lein, boot and gradle."
254254

255255
(defvar clojure-mode-syntax-table
256256
(let ((table (copy-syntax-table emacs-lisp-mode-syntax-table)))
257-
(modify-syntax-entry ?~ "' " table)
258257
(modify-syntax-entry ?\{ "(}" table)
259258
(modify-syntax-entry ?\} "){" table)
260259
(modify-syntax-entry ?\[ "(]" table)
261260
(modify-syntax-entry ?\] ")[" table)
261+
(modify-syntax-entry ?~ "'" table)
262262
(modify-syntax-entry ?^ "'" table)
263263
(modify-syntax-entry ?@ "'" table)
264-
;; Make hash a usual word character
265-
(modify-syntax-entry ?# "_ p" table)
264+
(modify-syntax-entry ?# "'" table)
266265
table)
267266
"Syntax table for Clojure mode.
268267
Inherits from `emacs-lisp-mode-syntax-table'.")

0 commit comments

Comments
 (0)