From 37e3aa2066021e059283c558cd7d1e27f507be0c Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 12 May 2024 04:20:00 +0000 Subject: [PATCH] fix: correct comment syntax entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was a mistakenly introduced by 3e496e8, adding the "2" flag into the comment syntax entry, caused to Emacs consider the `//` operator as a comment sequence: { foo = "foo"; } // { bar = "bar"; # ← comment sequence } --- nix-ts-mode.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nix-ts-mode.el b/nix-ts-mode.el index d349404..ef3aa08 100644 --- a/nix-ts-mode.el +++ b/nix-ts-mode.el @@ -223,10 +223,10 @@ and for subsequent lines it's the previous line's indentation." ;; Syntax map (defvar nix-ts-mode--syntax-table (let ((table (make-syntax-table))) - (modify-syntax-entry ?# "<" table) - (modify-syntax-entry ?\n ">" table) - (modify-syntax-entry ?/ ". 124b" table) - (modify-syntax-entry ?* ". 23" table) + (modify-syntax-entry ?# "< b" table) + (modify-syntax-entry ?\n "> b" table) + (modify-syntax-entry ?/ ". 14" table) + (modify-syntax-entry ?* ". 23" table) table) "Syntax table for `nix-ts-mode'.")