简体   繁体   中英

Emacs syntax highlight of nested backquote forms in lisp buffers

Is there a package for it? If not, what should I look into to create a package for it?

This package should highlight levels of parts of a nested backquote form in different colors.

`(a :i-am-in-level-1
    `(a :i-in-level-2
        ,(a :level-1 `(a :level-2))
        ,',(a :level-0)))

For example, level 0 should have no highlight, level 1 might have a light grey background, level 2 is in a darker background, and so on.

The rainbow-delimiters package does something similar for parens. You might take inspiration from there.

http://www.emacswiki.org/emacs/RainbowDelimiters/%22rainbow%20delimiters%22

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM