Last active
August 12, 2019 15:30
-
-
Save SolitudeSF/91fecc97a9107805b4bfd0b931711989 to your computer and use it in GitHub Desktop.
Various highlighting edgecases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {.experimental: "callOperator".} | |
| # "something" test | |
| var | |
| window: int | |
| surface*: int | |
| something = 1.123 | |
| heh = "type test" | |
| rawEmptyString = "" | |
| someString = r"#"" a\" | |
| otherString = "#\"" | |
| strin = r"""test""test""" | |
| hashchar = '#' | |
| charhashchar = '#'#'#' | |
| charhash = '1'# | |
| quotestring = "'" | |
| charquote = '"' | |
| type someObj = object | |
| `type 1.23 | |
| test`: int | |
| proc `::*` = echo 4 | |
| `::*`() | |
| proc `**:` = echo 3 | |
| `**:`() | |
| proc `.:::.` = echo 2 | |
| `.:::.`() | |
| proc `:::` = echo 1 | |
| `:::`() | |
| proc `()`(i: auto, a = 10; b = 1, c = 0) = echo 2E-2'f32 | |
| func `\`(s: string): string = s & s | |
| echo \"test" | |
| echo '\\' | |
| echo '\'' | |
| echo '\000251' | |
| echo '\r' | |
| echo '\"', '\'', '\\' | |
| let a = 0B0_10001110100_0000101001000111101011101111111011000101001101001001'f64 | |
| 1() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment