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

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

[elpa] externals/csharp-mode 76428ef 444/459: Nested type params and usi


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 76428ef 444/459: Nested type params and using declaration fixes (#233)
Date: Sun, 22 Aug 2021 14:00:19 -0400 (EDT)

branch: externals/csharp-mode
commit 76428ef4ad40c969f2182ad689ffc91ef5a940f5
Author: Joe <64441333+joefbsjr@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Nested type params and using declaration fixes (#233)
    
    * Fixed tree-sitter hl pattern for parameters with nested types.
    
    * Fixed using declarations tree-sitter highlighting.
---
 csharp-tree-sitter.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el
index ad9e581..855d536 100644
--- a/csharp-tree-sitter.el
+++ b/csharp-tree-sitter.el
@@ -140,6 +140,8 @@
 
    ;; Parameter
    (parameter
+    type: (qualified_name) @type)
+   (parameter
     type: (identifier) @type
     name: (identifier) @variable.parameter)
    (parameter (identifier) @variable.parameter)
@@ -240,7 +242,7 @@
    ;;  (identifier) @variable) ;; causes parsing error in tree-sitter
    (label_name) @variable
    (using_directive (identifier) @type.parameter)
-   (qualified_name (identifier) @type.parameter)
+   (using_directive (qualified_name) @type.parameter)
    (using_directive (name_equals (identifier) @type.parameter))
    ;; (await_expression (identifier)* @function) ;; crashes tree-sitter c-code 
with sigabrt!
    (invocation_expression (identifier) @function)



reply via email to

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