flylisp
- Description
- Color unbalanced parentheses and parentheses inconsistent with indentation
- Latest
- flylisp-0.2.0.20221221.75619.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. Works reliably after Emacs 24.3, in which bug 16247 is fixed. 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
flylisp-0.2.0.20220923.134141.tar.lz | 2022-Sep-26 | 5.74 KiB |
flylisp-0.2.0.20210415.180059.tar.lz | 2021-Apr-15 | 5.70 KiB |
flylisp-0.2.0.20210415.140059.tar.lz | 2021-Oct-09 | 5.71 KiB |
flylisp-0.2.0.20201201.205715.tar.lz | 2020-Dec-14 | 5.70 KiB |