[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode eb7623fb3b 178/500: Handle mmm-mode '' prefixes b
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode eb7623fb3b 178/500: Handle mmm-mode '' prefixes better |
Date: |
Sat, 29 Jan 2022 08:27:04 -0500 (EST) |
branch: elpa/nix-mode
commit eb7623fb3b23afec25619a76adab6bab5e338bf2
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Handle mmm-mode '' prefixes better
Sometimes we have variables that look like attr'' that Nix handles as a
name but
mmm-mode thought was a beginning of a multiline string. This adds some cases
handling those names to mmm-mode detection.
---
nix-mode-mmm.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/nix-mode-mmm.el b/nix-mode-mmm.el
index 6c30b67c56..33d5093595 100644
--- a/nix-mode-mmm.el
+++ b/nix-mode-mmm.el
@@ -13,15 +13,15 @@
(require 'mmm-mode)
(mmm-add-group 'nix-sh
- '((sh-command
- :submode sh-mode
- :face mmm-output-submode-face
- :front "''"
- :back "''[^$\\]"
- :include-front t
- :front-offset 2
- :end-not-begin t
- )))
+ '((sh-command
+ :submode sh-mode
+ :face mmm-output-submode-face
+ :front "[^'a-zA-Z]''[^']"
+ :back "''[^$\\]"
+ :include-front t
+ :front-offset 4
+ :end-not-begin t
+ )))
(setq mmm-global-mode 'maybe)
(mmm-add-mode-ext-class 'nix-mode "\\.nix\\'" 'nix-sh)
- [nongnu] elpa/nix-mode 0b19f975cd 143/500: Merge pull request #28 from pvmart/fix-nix-mmm, (continued)
- [nongnu] elpa/nix-mode 0b19f975cd 143/500: Merge pull request #28 from pvmart/fix-nix-mmm, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 719482b701 148/500: Update customizations for Nix related modes., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b3c6560f6d 166/500: Fix typo: rustfmt -> nixfmt, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 038dcf7b1b 147/500: Cleanup, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3edda90cfd 146/500: Remove nix-flycheck, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a967408f64 188/500: Don’t error when nix-shebang fails., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 05d7c828b3 187/500: Fix nix-company and mmm-mode loading., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 281bfc1abf 176/500: Cleanup font-locks again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 407051ad31 175/500: Add font-lock-tests.el file, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d341ef2f70 195/500: Add missing defcustom type, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode eb7623fb3b 178/500: Handle mmm-mode '' prefixes better,
ELPA Syncer <=
- [nongnu] elpa/nix-mode cc88a55ead 173/500: Add custom faces for Nix., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0181c35a4f 202/500: Add nix-unpack command., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0ac0271f6c 201/500: Update Homepage in .el files, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 39f29d8be4 207/500: Replace indentation code with simpler heuristics, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 57ac40d53b 214/500: Merge pull request #45 from eqyiel/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ba202b6657 220/500: Add nix-shell.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 082a25ba7d 227/500: Add more default packages in nix.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b98c1083a0 234/500: nix-shell-file not risky, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9fb4e16c9f 233/500: Setup global-nix-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 161e7ae4d2 237/500: Cleanup nix-instantiate, ELPA Syncer, 2022/01/29