ttype_highlight.nim 632 B

12345678910111213141516171819202122232425262728
  1. type
  2. TypeA = int
  3. TypeB* = int
  4. TypeC {.unchecked.} = array[1, int]
  5. TypeD[T] = T
  6. TypeE* {.unchecked.} = array[0, int]#[!]#
  7. discard """
  8. $nimsuggest --tester $file
  9. >highlight $1
  10. highlight;;skType;;2;;2;;5
  11. highlight;;skType;;3;;2;;5
  12. highlight;;skType;;4;;2;;5
  13. highlight;;skType;;5;;2;;5
  14. highlight;;skType;;6;;2;;5
  15. highlight;;skType;;2;;10;;3
  16. highlight;;skType;;3;;11;;3
  17. highlight;;skType;;4;;24;;5
  18. highlight;;skType;;4;;33;;3
  19. highlight;;skType;;5;;13;;1
  20. highlight;;skType;;6;;25;;5
  21. highlight;;skType;;6;;34;;3
  22. highlight;;skType;;2;;10;;3
  23. highlight;;skType;;3;;11;;3
  24. highlight;;skType;;4;;33;;3
  25. highlight;;skType;;6;;34;;3
  26. """