Skip to content

Incorrect indentation / fontification after metadata forms #61

Closed
@yuhan0

Description

@yuhan0

Expected:

Metadata forms ^:foo / ^{:foo 123} should not affect indentation of the following forms

[a b [c ^:foo
      d
      e]]

Actual:

;; with clojure-ts-indent-style = 'semantic
[a b [c ^:foo
        d
      e]]

;; with clojure-ts-indent-style = 'fixed
[a b [c ^:foo
d
      e]]

Some font-locking of the following form also appears to be affected:

Image


Typing a closing delimiter with Paredit (paredit-close-curly) can also cause the point to jump to the wrong position:

;;   ↓with point here, type "}"
[a ^{ } (b) c]
;;     |   |     
;;     |   actual
;;     expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions