branch: externals/csharp-mode
commit 658adb2f600f979c2a7cc764eb50679c58deb082
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: Jostein Kjønigsen <jost...@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