[
  [
    "start",
    [
      "punctuation.definition.comment.io",
      "//"
    ],
    [
      "comment.line.double-slash.io",
      " computes factorial of a number"
    ]
  ],
  [
    "start",
    [
      "text",
      "factorial "
    ],
    [
      "keyword.operator.io",
      ":="
    ],
    [
      "text",
      " "
    ],
    [
      "support.function.io",
      "method"
    ],
    [
      "text",
      "(n,"
    ]
  ],
  [
    "start",
    [
      "text",
      "    "
    ],
    [
      "keyword.control.io",
      "if"
    ],
    [
      "text",
      "(n "
    ],
    [
      "keyword.operator.io",
      "=="
    ],
    [
      "text",
      " "
    ],
    [
      "constant.numeric.io",
      "0"
    ],
    [
      "text",
      ", "
    ],
    [
      "keyword.control.io",
      "return"
    ],
    [
      "text",
      " "
    ],
    [
      "constant.numeric.io",
      "1"
    ],
    [
      "text",
      ")"
    ]
  ],
  [
    "start",
    [
      "text",
      "    res "
    ],
    [
      "keyword.operator.io",
      ":="
    ],
    [
      "text",
      " "
    ],
    [
      "constant.numeric.io",
      "1"
    ]
  ],
  [
    "start",
    [
      "text",
      "    "
    ],
    [
      "support.class.io",
      "Range"
    ],
    [
      "text",
      " "
    ],
    [
      "constant.numeric.io",
      "1"
    ],
    [
      "text",
      " "
    ],
    [
      "support.function.io",
      "to"
    ],
    [
      "text",
      "(n) "
    ],
    [
      "keyword.control.io",
      "foreach"
    ],
    [
      "text",
      "(i, res "
    ],
    [
      "keyword.operator.io",
      "="
    ],
    [
      "text",
      " res "
    ],
    [
      "keyword.operator.io",
      "*"
    ],
    [
      "text",
      " i)"
    ]
  ],
  [
    "start",
    [
      "text",
      ")"
    ]
  ]
]