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

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

[elpa] externals/csharp-mode 3f963c2 432/459: Make type_of_expression av


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 3f963c2 432/459: Make type_of_expression available in strings
Date: Sun, 22 Aug 2021 14:00:16 -0400 (EDT)

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

    Make type_of_expression available in strings
---
 csharp-tree-sitter.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/csharp-tree-sitter.el b/csharp-tree-sitter.el
index a28458c..29db91e 100644
--- a/csharp-tree-sitter.el
+++ b/csharp-tree-sitter.el
@@ -155,6 +155,12 @@
    (object_creation_expression (identifier) @type)
    (initializer_expression (identifier) @variable)
 
+   ;; Typeof
+   (type_of_expression (identifier) @variable)
+
+   ;; Member access
+   (member_access_expression (identifier) @function)
+
    ;; Variable
    (variable_declaration (identifier) @type)
    (variable_declarator (identifier) @variable)
@@ -192,7 +198,6 @@
    (conditional_expression (identifier) @variable)
    (prefix_unary_expression (identifier)* @variable)
    (postfix_unary_expression (identifier)* @variable)
-   (type_of_expression (identifier) @variable)
    (assignment_expression (identifier) @variable)
    (cast_expression (identifier) @type)
 
@@ -236,7 +241,6 @@
    (element_access_expression (identifier) @variable)
    (conditional_access_expression (identifier) @variable)
    (member_binding_expression (identifier) @variable)
-   (member_access_expression (identifier) @function)
    (name_colon (identifier)* @variable)
    (name_equals (identifier) @type)
    (field_declaration)



reply via email to

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