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.
2014-04-14 11:42:43 +00:00
## 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
```
2015-06-29 14:07:02 +00:00
The `` `[]` `` should only be red.
## Numerical type with suffix
```nimrod
2015-06-29 14:09:09 +00:00
proc suspend(p: Process) =
2015-06-29 14:10:58 +00:00
if kill(p.id, SIGSTOP) != 0'i32: raiseOsError(osLastError())
2015-06-29 14:07:02 +00:00
```
2015-06-29 14:10:13 +00:00
```nimrod
2015-06-29 14:10:58 +00:00
proc terminate(p: Process) =
if kill(p.id, SIGTERM) != 0'i32:
raiseOsError(osLastError())
2015-06-29 14:10:13 +00:00
2015-06-29 14:10:58 +00:00
proc kill(p: Process) =
if kill(p.id, SIGKILL) != 0'i32:
raiseOsError(osLastError())
2015-06-29 14:10:13 +00:00
```
`'i32` and after should not be red.
See also https://github.com/nim-lang/Nim/blob/2297a1aa6048fcbcffca4e2c2e4ede275261e83d/lib/pure/osproc.nim