Skip to content

Commit 3791b53

Browse files
committed
Disjoin exception symbols from special forms in keyword-groups
Duplicate matches in the syntax script are resolved by last-one-wins, so don't allow this to be an issue.
1 parent 5163b70 commit 3791b53

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

clj/src/vim_clojure_static/generate.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@
105105
(def keyword-groups
106106
"Special forms, constants, and every public var in clojure.core keyed by
107107
syntax group name."
108-
(let [builtins {"clojureConstant" '#{nil}
108+
(let [exceptions '#{throw try catch finally}
109+
builtins {"clojureConstant" '#{nil}
109110
"clojureBoolean" '#{true false}
110-
"clojureSpecial" special-forms
111-
;; These are duplicates from special-forms
112-
"clojureException" '#{throw try catch finally}
111+
"clojureSpecial" (apply disj special-forms exceptions)
112+
"clojureException" exceptions
113113
"clojureCond" '#{case cond cond-> cond->> condp if-let
114114
if-not if-some when when-first when-let
115115
when-not when-some}

0 commit comments

Comments
 (0)