wrong_ind.nim 770 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # bug #9505
  2. import std/[
  3. strutils, ospaths, os
  4. ]
  5. import pkg/[
  6. regex
  7. ]
  8. proc fun() =
  9. let a = [
  10. 1,
  11. 2,
  12. ]
  13. discard
  14. proc funB() =
  15. let a = [
  16. 1,
  17. 2,
  18. 3
  19. ]
  20. discard
  21. # bug #10156
  22. proc foo =
  23. ## Comment 1
  24. ## Comment 2
  25. discard
  26. proc bar =
  27. ## Comment 3
  28. ## Comment 4
  29. ## More here.
  30. discard
  31. proc barB =
  32. # Comment 5
  33. # Comment 6
  34. discard
  35. var x: int = 2
  36. echo x
  37. # bug #9144
  38. proc a() =
  39. if cond:
  40. while true:
  41. discard
  42. # comment 1
  43. # end while
  44. #end if
  45. # comment 2
  46. #if
  47. #case
  48. #end case
  49. #end if
  50. discard
  51. proc a() =
  52. while true:
  53. discard
  54. # comment 1
  55. # comment 2
  56. discard