branch: externals/csharp-mode commit 4aedd5624cbef6c3015dfe8f6e0dcd29f673fdb8 Author: Theodor Thornhill <t...@thornhill.no> Commit: Theodor Thornhill <t...@thornhill.no>
More basic highlighting --- csharp-mode.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/csharp-mode.el b/csharp-mode.el index 8215426..1f5921c 100644 --- a/csharp-mode.el +++ b/csharp-mode.el @@ -679,9 +679,13 @@ Key bindings: ;; (setq-local c-doc-comment-style '((csharp-mode . codedoc))) ;; (c-run-mode-hooks 'c-mode-common-hook 'csharp-mode-hook) (setq tree-sitter-hl-default-patterns - [((string_literal) @string - (interpolated_string_expression) @string - (verbatim_string_literal) @string)]) + [(modifier) @keyword + (identifier) @constant + (comment) @comment + (using_directive) @keyword + (string_literal) @string + (interpolated_string_expression) @string + (verbatim_string_literal) @string]) (tree-sitter-hl-mode)) (provide 'csharp-mode)