[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 7fbde25122 09/14: Add tests for issue 157
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 7fbde25122 09/14: Add tests for issue 157 |
Date: |
Tue, 19 Jul 2022 01:58:49 -0400 (EDT) |
branch: elpa/nix-mode
commit 7fbde25122c20ed3729f33aab6545449d3e6e0dc
Author: Nicholas Coltharp <coltharp@pdx.edu>
Commit: Nicholas Coltharp <coltharp@pdx.edu>
Add tests for issue 157
- `''` escapes `$` in both single- and double-quoted strings.
- `$$` cannot start an antiquote.
- In a double-quoted string, `\$$` cannot start an antiquote.
- In a single-quoted string, `\$$` *can* start an antiquote.
---
tests/nix-font-lock-tests.el | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/tests/nix-font-lock-tests.el b/tests/nix-font-lock-tests.el
index 5abdb5744f..619ee78f56 100644
--- a/tests/nix-font-lock-tests.el
+++ b/tests/nix-font-lock-tests.el
@@ -81,6 +81,30 @@ if all of its characters have syntax and face. See
("with" t nix-keyword-face)
("foo" t nix-attribute-face))))
+(ert-deftest nix-issue-157 ()
+ (check-properties
+ '("\"''$${x}")
+ '(("\"''$${x}" t font-lock-string-face)))
+ (check-properties
+ '("''''$${x}''")
+ '(("''''$" t font-lock-string-face)
+ ("${" t nix-antiquote-face)
+ ("}" t nix-antiquote-face)))
+ (check-properties
+ '("\"$${x}\"")
+ '(("\"$${x}\"" t font-lock-string-face)))
+ (check-properties
+ '("''$${x}''")
+ '(("''$${x}''" t font-lock-string-face)))
+ (check-properties
+ '("\"\\$${x}\"")
+ '(("\"\\$" t font-lock-string-face)
+ ("${" t nix-antiquote-face)
+ ("}" t nix-antiquote-face)))
+ (check-properties
+ '("''\\$${x}''")
+ '(("''\\$${x}''" t font-lock-string-face))))
+
;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; End:
- [nongnu] elpa/nix-mode updated (8fe2ccf0b0 -> b3f71c75f7), ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 80b05d3df7 08/14: Fix docstring for new function, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 7072348b55 03/14: Fix syntax highlighting for ''$ in indented strings, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode acf6f9d573 06/14: Code style: change (+ 1 ...) to (1+ ...), ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode acf4d6fdce 07/14: Naming change, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 7fbde25122 09/14: Add tests for issue 157,
ELPA Syncer <=
- [nongnu] elpa/nix-mode bac87932a8 02/14: chore(deps): bump cachix/install-nix-action from 16 to 17, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode bca3d518e3 01/14: chore(deps): bump actions/checkout from 2 to 3, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 0950294c48 04/14: Fix out-of-bounds error, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 5669eff2ad 13/14: Merge pull request #151 from NixOS/dependabot/github_actions/actions/checkout-3, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 87ba3a26c1 05/14: Fix $$ in string literals, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 8bd12b16b8 10/14: fix wrong enum value in nix-has-flakes, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode 5d5704d846 11/14: Merge pull request #159 from aameen-tulip/master, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode e22819a73b 12/14: Merge pull request #157 from nosewings/master, ELPA Syncer, 2022/07/19
- [nongnu] elpa/nix-mode b3f71c75f7 14/14: Merge pull request #153 from NixOS/dependabot/github_actions/cachix/install-nix-action-17, ELPA Syncer, 2022/07/19