This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-06
Channels
- # adventofcode (71)
- # aleph (1)
- # announcements (6)
- # aws (1)
- # babashka (27)
- # beginners (60)
- # biff (7)
- # calva (3)
- # clj-kondo (3)
- # clj-yaml (1)
- # clojure (60)
- # clojure-europe (43)
- # clojure-nl (3)
- # clojure-norway (75)
- # clojurescript (16)
- # code-reviews (7)
- # css (4)
- # cursive (47)
- # datascript (4)
- # events (5)
- # fulcro (37)
- # gratitude (5)
- # hyperfiddle (4)
- # introduce-yourself (4)
- # joyride (23)
- # juxt (4)
- # malli (4)
- # membrane (64)
- # nbb (8)
- # off-topic (12)
- # other-languages (6)
- # pathom (6)
- # polylith (9)
- # random (3)
- # rdf (66)
- # reitit (3)
- # releases (2)
- # shadow-cljs (18)
- # tree-sitter (10)
Wow, I was thinking about creating a tree-sitter channel but it turns out there already is one.
I am working on this issue in clojure-mode: https://github.com/clojure-emacs/clojure-mode/issues/640 And figured this would be a great place to chat about it and post updates on my progress instead of spamming the clojure mode issue
So far:
I recently got distinct highlighting on the namespace and name parts of keywords and symbols. I'm now trying to get distinct highlighting for typehints and metadata sugar like this ^:added-metadata
Metadata syntax highlighting is working great now.
I can pretty easily apply type
face to typehints, property
face to metadata. I've added preprocessor
face to reader tags, comment-delimiter
face to the discard tag, warning
face to deref symbol.
Quote syntax ``~@` and var quotes #'
have a delimiter
face.
Turning off rainbow delimiters, brackets and the set literal #
have a delimiter
face.
edit: did not mean to sent this to channel.
do you know how this might interact with lap's highlighting?
Do you mean lsp's highlighting? I can't imagine it will be different from how it works today, since I think lsp applies highlighting after the major mode does. I haven't done much testing, but with eglot and clojure-lsp it still does things like highlight matching symbols when the cursor is over it.
right, that's my understanding, it enhances the major mode's highlighting, but I was curious if tree-sitter changes that at all
I've also wondered as a pie-in-the-sky thing if tree-sitter couldn't be integrated into clojure-lsp but that's not super relevant here
Well I can say for sure that eglot with clojure-lsp work well with my tree-sitter branch. I can imagine lsp-mode will as well, but I don't use that library personally. I'm not sure what clojure-lsp would gain by using tree-sitter. I believe it already uses rewrite-clj to fill a similar role as what tree-sitter would do. Maybe it would be faster to parse, but I'm not sure what else it brings to the table. The lsp maintainers might be interested though
Turning off rainbow delimiters, brackets and the set literal #
have a delimiter
face.
edit: did not mean to sent this to channel.