Skip to content

Commit 5609660

Browse files
committed
[#394] Declare ? character as symbol with p flag
? must be treated as a symbol inside symbols but as a prefix within conditional prefixes like #? and #?@.
1 parent 7073c84 commit 5609660

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## master (unreleased)
44

55
### Bugs fixed
6-
7-
* [#394](https://github.com/clojure-emacs/clojure-mode/issues/394): `#` character now has prefix syntax class.
6+
* [#394](https://github.com/clojure-emacs/clojure-mode/issues/394): `?` character is now treated as prefix when outside symbols.
7+
* [#394](https://github.com/clojure-emacs/clojure-mode/issues/394): `#` character now has prefix syntax class.
88
* Fixed indentation of `definterface` to match that of `defprotocol`.
99
* [#389](https://github.com/clojure-emacs/clojure-mode/issues/389): Fixed the indentation of `defrecord` and `deftype` multiple airity protocol forms.
1010

clojure-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ Out-of-the box clojure-mode understands lein, boot and gradle."
258258
(modify-syntax-entry ?\} "){" table)
259259
(modify-syntax-entry ?\[ "(]" table)
260260
(modify-syntax-entry ?\] ")[" table)
261+
(modify-syntax-entry ?? "_ p" table) ; prefix outside of symbols
261262
(modify-syntax-entry ?~ "'" table)
262263
(modify-syntax-entry ?^ "'" table)
263264
(modify-syntax-entry ?@ "'" table)

0 commit comments

Comments
 (0)