branch: externals/csharp-mode
commit 7d4af0d7adf93b6553d2c9b27f0682ec203a24b3
Author: Theodor Thornhill <[email protected]>
Commit: Theodor Thornhill <[email protected]>
Add with_expression
---
csharp-tree-sitter.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el
index f01e1ae..83a7ef7 100644
--- a/csharp-tree-sitter.el
+++ b/csharp-tree-sitter.el
@@ -59,6 +59,7 @@
"foreach" "in" "yield" "get" "set" "when" "as" "out"
"is" "while" "continue" "this" "ref" "goto" "interface"
"from" "where" "select" "lock" "base" "record" "init"
+ "with"
] @keyword
;; Linq
@@ -87,6 +88,11 @@
;; Record
(record_declaration (identifier) @type)
+ (with_expression
+ (with_initializer_expression
+ (simple_assignment_expression
+ (identifier) @variable)))
+
;; Namespace
(namespace_declaration
name: (identifier) @type)