emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode de6ef0d0c7 355/500: Give "-" the "symbol" charact


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode de6ef0d0c7 355/500: Give "-" the "symbol" character class, since it is a legal symbol constituent
Date: Sat, 29 Jan 2022 08:27:20 -0500 (EST)

branch: elpa/nix-mode
commit de6ef0d0c774c614086deb780874798d739ca050
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Give "-" the "symbol" character class, since it is a legal symbol 
constituent
    
    This still allows "-" to be highlighted correctly when used as a binary
    or unary operator.
---
 nix-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nix-mode.el b/nix-mode.el
index 9d3cad7914..1c5168f0c1 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -162,7 +162,7 @@ KEYWORDS a list of strings to match as Nix keywords."
     (modify-syntax-entry ?\n "> b" table)
     (modify-syntax-entry ?_ "_" table)
     (modify-syntax-entry ?. "'" table)
-    (modify-syntax-entry ?- "'" table)
+    (modify-syntax-entry ?- "_" table)
     (modify-syntax-entry ?' "'" table)
     (modify-syntax-entry ?= "." table)
     (modify-syntax-entry ?< "." table)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]