summary refs log tree commit diff stats
path: root/compiler/layouter.nim
Commit message (Expand)AuthorAgeFilesLines
...
* nimpretty: bugfixes; refs #8078Araq2018-06-201-4/+7
* nimpretty: fixes more reported issuesAndreas Rumpf2018-06-201-3/+4
* nimpretty: don't produce trailing whitespace; fixes the rendering of unary op...Andreas Rumpf2018-06-191-4/+9
* nimpretty: proper command line handling; added tests; travis ensures these st...Andreas Rumpf2018-06-191-7/+5
* nimpretty improvementsAndreas Rumpf2018-06-191-41/+46
* nimpretty: don't touch dense binary operatorsAndreas Rumpf2018-06-171-9/+13
* nimpretty: stuff that doesn't workAndreas Rumpf2018-06-161-6/+34
* nimpretty: more featuresAndreas Rumpf2018-06-161-11/+27
* nimpretty: render and/or/notin/in properlyAndreas Rumpf2018-06-161-2/+9
* nimpretty: first version that seems useful for others to test itAndreas Rumpf2018-06-161-0/+201
highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
discard """
  output: "56"
"""

# bug #1781

proc initCombinations: array[11, array[11, int]] =
  result[0]          = [1,2,3,4,5,6,7,8,9,10,11]
  result[1][1 .. 10] =   [12,13,14,15,16,17,18,19,20,21]
  result[2][2 .. 10] =     [22,23,24,25,26,27,28,29,30]
  result[3][3 .. 10] =       [31,32,33,34,35,36,37,38]
  result[4][4 .. 10] =         [39,40,41,42,43,44,45]
  result[5][5 .. 10] =           [46,47,48,49,50,51]
  result[6][6 .. 10] =             [52,53,54,55,56]

const combinations = initCombinations()
echo combinations[6][10]