branch: externals/csharp-mode
commit a4024024bbb2a90d209c373a8848fc6fce72aec5
Author: Theodor Thornhill <t...@thornhill.no>
Commit: Theodor Thornhill <t...@thornhill.no>
Add lock_statement
---
csharp-tree-sitter.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el
index 447c66b..d909508 100644
--- a/csharp-tree-sitter.el
+++ b/csharp-tree-sitter.el
@@ -56,7 +56,7 @@
"default" "typeof" "try" "catch" "finally" "break"
"foreach" "in" "yield" "get" "set" "when" "as" "out"
"is" "while" "continue" "this" "ref" "goto" "interface"
- "from" "where" "select"
+ "from" "where" "select" "lock"
] @keyword
;; Linq
@@ -194,6 +194,9 @@
;; Arrow expression
(arrow_expression_clause (identifier) @variable)
+ ;; Lock statement
+ (lock_statement (identifier) @variable)
+
;; Other
(label_name) @variable
(qualified_name (identifier) @type)