mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-21 19:06:18 +02:00
Using these examples: ~~~ 0x21 1_000 1e3 ~~~ Several languages failed that support these syntax. Here are ones I found: Lexer | 0x21 | 1_000 | 1e3 -----------|------|-------|----- C# | fail | fail | fail Go | | fail | JavaScript | | fail | fail PHP | | fail | Python | | fail | Ruby | | | fail I fixed these issues, and added tests.
16 lines
359 B
Plaintext
16 lines
359 B
Plaintext
DriveInfo[] drives = DriveInfo.GetDrives();
|
|
foreach (DriveInfo drive in drives)
|
|
{
|
|
IEnumerable<string> driveFolders =
|
|
Directory.EnumerateDirectories(drive.RootDirectory.ToString());
|
|
|
|
foreach (string dir in driveFolders)
|
|
{
|
|
Console.WriteLine(dir);
|
|
}
|
|
}
|
|
|
|
int n = 0x21 + 1_000;
|
|
double n2 = 1e3;
|
|
|
|
// Comment as last line should be recognised properly |