GNU ELPA - flylisp

flylisp

Description
Color unbalanced parentheses and parentheses inconsistent with indentation
Latest
flylisp-0.2.tar (.sig), 2024-Mar-31, 30.0 KiB
Maintainer
Barry O'Reilly <gundaetiapo@gmail.com>
Atom feed
flylisp.xml
Website
https://elpa.gnu.org/packages/flylisp.html
Browse repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

Colors mismatched open parentheses with fl-mismatched-face, red by
default.

Also colors open and close parentheses which are inconsistent with
the indentation of lines between them with fl-inconsistent-face,
orange by default. This is useful for the Lisp programmer who
infers a close paren's location from the open paren and
indentation. The coloring serves as a warning that the indentation
misleads about where the close paren is. It may also help to
localize the mistake, whether due to a misindented line or a
misplaced paren.

As an example, consider:

  (aaa (bbb "word-a
  word-b" (ccc 1
               2)
       fff))

(aaa ...) and (ccc ...) are consistent, so are not colored.
(bbb ...) is inconsistent because the indentation of fff is
inconsistent with the actual location of the close paren. The open
and close paren are thus colored with the fl-inconsistent-face.
This example also shows that multi line strings don't cause an
inconsistency.

Currently, the package only detects close parens that are after the
place indentation would predict. A planned feature is to also
indicate when the close paren is before.

Also planned is to color mismatched close parens.

Old versions