是否有一种编程语言将缩进作为包含标记?(如果是的话,哪个)

Laz*_*zlo 2 programming-languages indentation

我想知道这种语法(借用C#,请注意)是否被编程语言使用,即用于包含的选项卡,没有任何"结束"指令.

class Character
    static string Name;
    static int Level;
    static Inventory Inventory;
    static double Health;

    Character(string name, int level)
        this.Name = name;
        this.Level = level;
        this.Inventory = new Inventory(this);
        this.Health = 1;

    void Die()
        this.Health = 0;

class Inventory
    Character Parent;
    List<Item> Items;

    Inventory(Character parent)
        this.Parent = parent;
Run Code Online (Sandbox Code Playgroud)

Jon*_*Jon 6

  1. 蟒蛇
  2. 哈斯克尔
  3. 奥卡姆

这些是我所知道的.