tree-sitter / tree-sitter-c-sharp

C# Grammar for tree-sitter
MIT License
177 stars 47 forks source link

multiline Lambda expression'a don't indent well #323

Closed bleppie closed 2 months ago

bleppie commented 7 months ago
public class C {
    public float foo =>
1;
    public float bar
    => 2;
}

Both of these give the following error: (ERROR (variable_declaration type: (predefined_type) (variable_declarator name: (identifier))) => (integer_literal))

amaanq commented 2 months ago

i dont see a parse error with this, and indentation belongs in nvim-treesitter or the repo of whatever tool you're using