Skip to content

4.0.0

Compare
Choose a tag to compare
@tonsky tonsky released this 23 Aug 16:57
· 33 commits to master since this release

Syntax has been significantly reworked:

syntaxes

  • New syntax that can highlight reader comments comment.reader together with the following form
  • Highlight (comment ...) blocks as comment.form
  • Highlight namespaces in symbols as meta.namespace.symbol
  • Highlight unused symbols as source.symbol.unused
  • Properly highlight entity.name in def* forms only at second position, skipping all meta/comments
  • Quote & syntax quote highlight following form as meta.quoted and meta.quoted.syntax
  • Metadata highlights following form as meta.metadata
  • Octal & arbitrary radix integers
  • Better keyword detection

Built-in color scheme to utilize REPL and new syntax features:

scheme

Option to use cljfmt for code formatting:

  • Download cljfmt binary from https://github.com/weavejester/cljfmt/releases/latest
  • Add cljfmt to $PATH
  • In Sublime Text, open Preferences: Settings
  • Add "clojure_sublimed_formatter": "cljfmt"

Other changes:

  • Removed separate EDN syntax, merged with main Clojure (Sublimed)
  • Settings can now be specified in main Preferences.sublime-settings as well. Just prepend clojure_sublimed_ to each setting’s name.
  • REPL can detect namespaces with meta on ns form
  • Detect .shadow-cljs/nrepl.port and .shadow-cljs/socket-repl.port
  • Connect commands now accept timeout argument for automation scenarios like “start clojure, start trying to connect to REPL until port is available”