nim-wiki/Pygments-issues.md

25 lines
771 B
Markdown
Raw Normal View History

2013-12-05 17:48:19 +00:00
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.
2013-12-08 18:57:24 +00:00
```
## Troubles with triple quotes
2014-04-14 11:42:43 +00:00
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]
2014-04-14 11:44:44 +00:00
```
The `` `[]` `` should only be red.