branch: externals/bicep-ts-mode
commit a2d1bba19b7941c7009f944df0b48e8203c03853
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: Jostein Kjønigsen <jost...@kjonigsen.net>

    Add comments to syntax-table
---
 bicep-ts-mode.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bicep-ts-mode.el b/bicep-ts-mode.el
index b1daf2edf0..2cc3e40020 100644
--- a/bicep-ts-mode.el
+++ b/bicep-ts-mode.el
@@ -70,6 +70,11 @@ Changes may require an Emacs-restart to take effect."
     (modify-syntax-entry ?'  "\""  table)
     (modify-syntax-entry ?\' "\""  table)
     (modify-syntax-entry ?\n "> b" table)
+
+    ;; Define `//` as a comment starter
+    (modify-syntax-entry ?/ ". 12" table)
+    ;; Define newline as the comment end
+    ;;(modify-syntax-entry ?\n ">" table)
     table)
   "Syntax table for `bicep-ts-mode'.")
 

Reply via email to