branch: externals/csharp-mode commit 09b4d57d020a97e1696e89baa6d9855ff5c86014 Author: Theodor Thornhill <t...@thornhill.no> Commit: Theodor Thornhill <t...@thornhill.no>
Add comment-start-skip This annoyed me too much by now. Stole it from js-mode. Good enough for now. --- csharp-tree-sitter.el | 1 + 1 file changed, 1 insertion(+) diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el index 13685cd..d3ea117 100644 --- a/csharp-tree-sitter.el +++ b/csharp-tree-sitter.el @@ -340,6 +340,7 @@ Key bindings: (setq-local tree-sitter-hl-default-patterns csharp-mode-tree-sitter-patterns) ;; Comments (setq-local comment-start "// ") + (setq-local comment-start-skip "\\(?://+\\|/\\*+\\)\\s *") (setq-local comment-end "") (tree-sitter-hl-mode))