emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode 4aedd56 372/459: More basic highlighting


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 4aedd56 372/459: More basic highlighting
Date: Sun, 22 Aug 2021 14:00:04 -0400 (EDT)

branch: externals/csharp-mode
commit 4aedd5624cbef6c3015dfe8f6e0dcd29f673fdb8
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]