mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-15 13:33:12 +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.
18 lines
248 B
Plaintext
18 lines
248 B
Plaintext
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println("Hello World!")
|
|
}
|
|
|
|
var n int = 0x21 + 1_000
|
|
var n2 float64 = 1e3
|
|
|
|
func hello(a int) {
|
|
fmt.Println("Hello World!").Hello()
|
|
|
|
return func() int {
|
|
return i
|
|
}
|
|
} // One last thing |