25 lines
771 B
Markdown
25 lines
771 B
Markdown
If you see any issues with the Pygments syntax highlighting for Nimrod (what github uses) please list them here so that somebody can fix them at some point.
|
|
|
|
## Incorrect type suffix highlighting
|
|
|
|
Type suffixes with an apostrophe are highlighted correctly, but the manual states that they are optional:
|
|
|
|
```nimrod
|
|
var x = 0f64 # This is red.
|
|
```
|
|
|
|
## Troubles with triple quotes
|
|
|
|
Files like [examples/cross_todo/nimrod_backend/backend.nim](https://github.com/Araq/Nimrod/blob/master/examples/cross_todo/nimrod_backend/backend.nim) seem to have troubles with triple quotes, maybe because they use ``sql``?
|
|
|
|
## Generics + Operators
|
|
|
|
```nimrod
|
|
proc `[]`[T](x: int, args: varargs[T, `$`]) =
|
|
for arg in args:
|
|
echo arg
|
|
|
|
1[1, "x", 3]
|
|
```
|
|
|
|
The `` `[]` `` should only be red. |