Open VladimirAlexiev opened 5 years ago
https://github.com/ericprud/shexc-mode-for-emacs/blob/master/shexc-mode.el#L73 can be simplified to
(regexp-opt '("base" "prefix" ...) 'words)
The syntax of this variable is defined in:
(describe-variable 'font-lock-keywords) (info "(elisp)Search-based fontification")
Then to have case-insensitivity, do this:
(setq font-lock-defaults '(shexc-highlights nil t))
The last t means CASE-FOLD, see
CASE-FOLD
(describe-variable 'font-lock-defaults)
[Ww][Hh][Yy], [Ii][Ss] [Mm][Yy] [Cc][Uu][Rr][Rr][Ee][Nn][Tt] [Aa][Pp][Pp][Rr][Oo][Aa][Cc][Hh] [Hh][Aa][Rr][Dd] [Tt][Oo] [Rr][Ee][Aa][Dd]?
[aA][nN][Dd] [Ww][rR][iI][Tt][eE]
https://github.com/ericprud/shexc-mode-for-emacs/blob/master/shexc-mode.el#L73 can be simplified to
The syntax of this variable is defined in:
Then to have case-insensitivity, do this:
The last t means
CASE-FOLD
, see