linguist icon indicating copy to clipboard operation
linguist copied to clipboard

Common Intermediate Language (MSIL)

Open Lamparter opened this issue 7 months ago • 0 comments

Language name

  • Common Intermediate Language (previously Microsoft Intermediate Language, abbreviated as MSIL, CIL or simply IL)

URL of example repository

Most languages built on top of .NET and the CLI (Common Language Infrastructure) compile into IL, however not so many projects are written in IL directly.

From a quick search, there are just over 50.9k files on GitHub written using MSIL.

URL of syntax highlighting grammar

I don't know where I would find a syntax highlighting grammar for MSIL.

Most popular extensions

  • CIL uses the .il file extension.
  • Some repositories choose to use the .cil file extension, however the official file extension for writing IL as included in the IL SDK is .il.

    The .cil extension is also used by the SELinux Common Intermediate Language, which is not to be confused with the .NET CIL. It may be best not to include the .cil file extension in the .NET CIL language yaml spec to avoid confusion with SELinux CIL.

Detected language

Files written using IL as of now are not being detected as any language, and do not have any kind of syntax highlighting. Here's an example.

Lamparter avatar May 27 '25 16:05 Lamparter