branch: elpa/nix-mode
commit de6ef0d0c774c614086deb780874798d739ca050
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>
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)