linguist
linguist copied to clipboard
Common Intermediate Language (MSIL)
Language name
- Common Intermediate Language (previously Microsoft Intermediate Language, abbreviated as MSIL, CIL or simply IL)
URL of example repository
- For example,
System.Runtime.CompilerServices.Unsafeuses the IL language directly. - Roslyn, the C# and Visual Basic compiler, also uses IL.
- Mono is also partially programmed in IL and so are some of the tests for the .NET Runtime.
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
.ilfile extension. -
Some repositories choose to use the
.cilfile extension, however the official file extension for writing IL as included in the IL SDK is.il.The
.cilextension 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.cilfile 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.