Copyright © 2017 Oleg Pykhalov Copyright © 2017 Ludovic Courtès This patch adds highlighting for (guix) G-Expressions. diff --git a/highlight-stages.el b/highlight-stages.el index 3094c3c..e11260e 100644 --- a/highlight-stages.el +++ b/highlight-stages.el @@ -237,14 +237,14 @@ non-nil, (match-string 0) must be the expression matched." (defun highlight-stages-lisp-quote-matcher (&optional limit) (when (highlight-stages--search-forward-regexp - "\\(?:`\\|\\(#?'\\)\\)\\|([\s\t\n]*\\(?:backquote\\|\\(quote\\)\\)[\s\t\n]+" limit) + "\\(?:`\\|\\(#?'\\)\\)\\|([\s\t\n]*\\(?:backquote\\|\\(quote\\)\\)[\s\t\n]+\\|\\(?:#~\\)\\|([\s\t\n]*\\(?:gexp\\)[\s\t\n]+" limit) (prog1 (if (or (match-beginning 1) (match-beginning 2)) 'real t) (set-match-data (list (point) (progn (ignore-errors (forward-sexp 1)) (point))))))) (defun highlight-stages-lisp-escape-matcher (&optional limit) - (when (highlight-stages--search-forward-regexp ",@?\\|([\s\t\n]*\\\\,@?+[\s\t\n]+" limit) + (when (highlight-stages--search-forward-regexp ",@?\\|([\s\t\n]*\\\\,@?+[\s\t\n]+\\|\\(unquote\\)\\|\\(unquote-splicing\\)\\|\\(ungexp-native\\)\\|\\(ungexp-splicing\\)\\|\\(ungexp-native-splicing\\)\\|\\(ungexp\\)\\|#\\$" limit) (set-match-data (list (point) (progn (ignore-errors (forward-sexp 1)) (point)))) >diff
AgeCommit message (Expand)Author
2020-10-14hurd-boot: Set /hurd/magic on /dev/fd....Ludovic Courtès
2020-10-08hurd-boot: Create /servers/crash....Ludovic Courtès
2020-06-27hurd-boot: Mount /proc, add /etc/mtab....Jan (janneke) Nieuwenhuizen
2020-06-27hurd-boot: Remove duplicate calls to 'scope'....Jan (janneke) Nieuwenhuizen
2020-06-19hurd-boot: Use 'setxattr' instead of invoking settrans....Jan (janneke) Nieuwenhuizen
2020-06-19hurd-boot: Create individual translators instead of running MAKEDEV....Jan (janneke) Nieuwenhuizen
2020-06-08gnu: services: Add %hurd-startup-service....Jan (janneke) Nieuwenhuizen
2020-06-08hurd-boot: Further cleanup of "rc"....Jan (janneke) Nieuwenhuizen