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

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

[elpa] externals/csharp-mode 03b8284 428/459: Add type constraints and l


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 03b8284 428/459: Add type constraints and lambda support
Date: Sun, 22 Aug 2021 14:00:15 -0400 (EDT)

branch: externals/csharp-mode
commit 03b82843f76ccf3558d18a70b6e7b084e8fe892d
Author: Theodor Thornhill <theo@thornhill.no>
Commit: Theodor Thornhill <theo@thornhill.no>

    Add type constraints and lambda support
---
 csharp-tree-sitter.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el
index 0d93601..dea5172 100644
--- a/csharp-tree-sitter.el
+++ b/csharp-tree-sitter.el
@@ -127,6 +127,10 @@
    (local_function_statement (void_keyword) @type (identifier) @function)
    (local_function_statement (generic_name) (identifier) @function)
 
+   ;; Lambda
+   (lambda_expression
+    (identifier) @variable)
+
    ;; Parameter
    (parameter
     type: (identifier) @type
@@ -170,6 +174,14 @@
    (nullable_type) @type
    ["operator"] @type
 
+   ;; Type constraints
+   (type_parameter_constraints_clause
+    (identifier) @type)
+   (type_parameter_constraint
+    (identifier) @type)
+   (type_constraint
+    (identifier) @type)
+
    ;; Exprs
    (binary_expression (identifier) @variable (identifier) @variable)
    (binary_expression (identifier)* @variable)



reply via email to

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