branch: externals/csharp-mode
commit cb2404f536daee9899e9800ea3fbdfb7e7201b39
Author: Theodor Thornhill <t...@thornhill.no>
Commit: Theodor Thornhill <t...@thornhill.no>

    Correctly handle implicit types in for_each_statement
---
 csharp-tree-sitter.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el
index 29db91e..b341a72 100644
--- a/csharp-tree-sitter.el
+++ b/csharp-tree-sitter.el
@@ -206,9 +206,9 @@
    (preprocessor_call (identifier) @string)
 
    ;; Loop
-   (for_each_statement (identifier) @type (identifier) @variable)
    (for_each_statement (implicit_type) @type (identifier) @variable)
    (for_each_statement (predefined_type) @type (identifier) @variable)
+   (for_each_statement (identifier) @type (identifier) @variable)
 
    ;; Exception
    (catch_declaration (identifier) @type (identifier) @variable)

Reply via email to