[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 8d2a304865 098/500: Fontification: smoked out cor
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 8d2a304865 098/500: Fontification: smoked out corner cases |
Date: |
Sat, 29 Jan 2022 08:26:40 -0500 (EST) |
branch: elpa/nix-mode
commit 8d2a3048656b188a85177faecbcef818617a5fd8
Author: Leon Isenberg <ljli@users.noreply.github.com>
Commit: Leon Isenberg <ljli@users.noreply.github.com>
Fontification: smoked out corner cases
---
nix-mode.el | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index 425060b517..4852566444 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -174,10 +174,21 @@
'nix-syntax-antiquote t)
(let ((ahead (buffer-substring (1+ start) (min (point-max) (+ 5
start)))))
(case string-type
- (?\" (unless (string-match-p "^\"" ahead)
+ (?\" (cond
+ ((string-match-p "^\\\\\"" ahead)
(put-text-property (1+ start) (+ 2 start)
- 'syntax-table (string-to-syntax "|")))
- (goto-char (+ 2 start)))
+ 'syntax-table (string-to-syntax "|"))
+ (goto-char (+ 3 start)))
+ ((string-match-p "^\\\\\\${" ahead)
+ (put-text-property (1+ start) (+ 2 start)
+ 'syntax-table (string-to-syntax "|"))
+ (goto-char (+ 4 start)))
+ ((string-match-p "^\"" ahead)
+ (goto-char (+ 2 start)))
+ (t
+ (put-text-property (1+ start) (+ 2 start)
+ 'syntax-table (string-to-syntax "|"))
+ (goto-char (+ 2 start)))))
(?\' (cond
((string-match-p "^'''" ahead)
(put-text-property (1+ start) (+ 2 start)
@@ -187,7 +198,7 @@
(put-text-property (1+ start) (+ 2 start)
'syntax-table (string-to-syntax "|"))
(goto-char (+ 5 start)))
- ((string-match-p "^''\\[nrt]" ahead)
+ ((string-match-p "^''\\\\[nrt]" ahead)
(put-text-property (1+ start) (+ 2 start)
'syntax-table (string-to-syntax "|"))
(goto-char (+ 5 start)))
- [nongnu] elpa/nix-mode d8b088a4e2 034/500: Disable string indenting again, (continued)
- [nongnu] elpa/nix-mode d8b088a4e2 034/500: Disable string indenting again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3ad8e224d7 043/500: Use looking-back for hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ec9cf2f4e5 061/500: Remove nix-syntax-propertize-escaped-antiquote., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c339fc9062 072/500: More small nitpicks., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1cc3cffa29 060/500: Pick up extra "let" found in acme.nix., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1772d1f0db 077/500: Fixup syntax entry., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode fa7a4a0d4d 078/500: Update README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9015ef6603 029/500: check beginning for comment indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0ada62bbee 091/500: Merge pull request #11 from matthewbauer/completion, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2de7d1d585 088/500: Don't require company to be installed., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8d2a304865 098/500: Fontification: smoked out corner cases,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 702f62abff 103/500: lexical bindings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 03e39da643 099/500: Fix flycheck lexical-binding complaints., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1c54c72161 121/500: Remove visit-file., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5e943a77e8 133/500: Fix syntax error, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 804ec4e7de 122/500: Remove visit file /2, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3957a90b1a 125/500: Add `null` to list of Nix builtins, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 046afc4b4d 127/500: Rework indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 18abc92bd8 141/500: fix mmm, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode eb109c7a7f 137/500: Merge pull request #26 from ljli/lex-pos-fix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e2b009fff3 167/500: Merge pull request #31 from eqyiel/master, ELPA Syncer, 2022/01/29