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

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

[elpa] externals/csharp-mode 658adb2 376/459: Add support for namespace-


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 658adb2 376/459: Add support for namespace-declarations.
Date: Sun, 22 Aug 2021 14:00:05 -0400 (EDT)

branch: externals/csharp-mode
commit 658adb2f600f979c2a7cc764eb50679c58deb082
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Add support for namespace-declarations.
---
 csharp-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index 3064bbc..327acb5 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -681,7 +681,7 @@ Key bindings:
   (setq tree-sitter-hl-default-patterns
         [(comment) @comment
          (modifier) @keyword
-         ["using" "class" "if" "else" "throw" "new" "for"
+         ["using" "namespace" "class" "if" "else" "throw" "new" "for"
           "return" "await" "struct" "enum" "switch" "case"
           "default" "typeof" ] @keyword
           ;; Literals
@@ -725,6 +725,9 @@ Key bindings:
 
          (struct_declaration (identifier) @type)
 
+         ;; Namespace
+         (namespace_declaration
+          name: (identifier) @type)
          ;; Class
          (base_list (identifier) @type)
          (accessor_declaration) @keyword



reply via email to

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