wrong_ind.nim 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # bug #9505
  2. import std/[
  3. strutils, 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
  57. proc i11937() =
  58. result = %*
  59. {
  60. "_comment": "pbreports-style JSON",
  61. "attributes": [],
  62. "dataset_uuids": [],
  63. "id": "microbial_asm_polishing_report",
  64. "plotGroups": [],
  65. "tables": [
  66. {
  67. "columns": [
  68. {
  69. "header": "Contig",
  70. "id": "microbial",
  71. "values": values_contig
  72. },
  73. {
  74. "header": "Length",
  75. "id": "microbial",
  76. "values": values_length
  77. },
  78. {
  79. "header": "Circular?",
  80. "id": "microbial",
  81. "values": values_circular
  82. }
  83. ],
  84. "id": "microbial_asm_polishing_report.contigs_table",
  85. "title": "Polished contigs from Microbial Assembly"
  86. },
  87. ],
  88. "tags": [],
  89. "title": "Microbial Assembly Polishing Report",
  90. "uuid": uuid,
  91. "version": version
  92. }