summary refs log tree commit diff stats
path: root/compiler/reorder.nim
Commit message (Expand)AuthorAgeFilesLines
* Replace countup(x, y) with x .. yClyybber2019-05-071-1/+1
* fix typo in codeReordering error msg (#10667)Timothee Cour2019-02-141-1/+1
* deprecated ospaths (#9665)Andreas Rumpf2018-11-091-1/+1
* fixes #9281Araq2018-10-111-1/+1
* incremental compilation: implemented basic replay logicAndreas Rumpf2018-06-021-10/+8
* refactoring: remove idents.legacy global variable and pass the IdentCache aro...Andreas Rumpf2018-05-271-13/+13
* refactoring: fewer global variablesAndreas Rumpf2018-05-271-12/+12
* remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-1/+1
* preparations of making compiler/msgs.nim free of global variablesAndreas Rumpf2018-05-171-2/+3
* big refactoring: mores stuff compilesAndreas Rumpf2018-05-101-6/+7
* compiler refactoring, pass config around explicitlyAndreas Rumpf2018-05-051-4/+4
* compiler: remove unnecessary FileIndex type conversionsAndreas Rumpf2018-04-241-1/+1
* refactoring: make FileIndex a distinct type; make line information an uint16;...Andreas Rumpf2018-04-211-10/+10
* deprecated unary '<'Andreas Rumpf2017-10-291-1/+1
* Add sections (type, var, let, const, using) support for reorder pragma (#6326)BigEpsilon2017-10-281-43/+385
* fixes #6306Andreas Rumpf2017-09-011-1/+1
* reorder pass: consider the 'using' statement; disabled debug outputAndreas Rumpf2017-08-111-2/+2
* implemented reordering passAndreas Rumpf2017-07-251-0/+102
r: #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 """
  msg: '''61'''
"""

# bug #2297

import tables

proc html5tags*(): TableRef[string, string] =
  var html5tagsCache: Table[string,string]
  if true:
    new(result)
    html5tagsCache = initTable[string, string]()
    html5tagsCache["a"] = "a"
    html5tagsCache["abbr"] = "abbr"
    html5tagsCache["b"] = "b"
    html5tagsCache["element"] = "element"
    html5tagsCache["embed"] = "embed"
    html5tagsCache["fieldset"] = "fieldset"
    html5tagsCache["figcaption"] = "figcaption"
    html5tagsCache["figure"] = "figure"
    html5tagsCache["footer"] = "footer"
    html5tagsCache["header"] = "header"
    html5tagsCache["form"] = "form"
    html5tagsCache["head"] = "head"
    html5tagsCache["hr"] = "hr"
    html5tagsCache["html"] = "html"
    html5tagsCache["iframe"] = "iframe"
    html5tagsCache["img"] = "img"
    html5tagsCache["input"] = "input"
    html5tagsCache["keygen"] = "keygen"
    html5tagsCache["label"] = "label"
    html5tagsCache["legend"] = "legend"
    html5tagsCache["li"] = "li"
    html5tagsCache["link"] = "link"
    html5tagsCache["main"] = "main"
    html5tagsCache["map"] = "map"
    html5tagsCache["menu"] = "menu"
    html5tagsCache["menuitem"] = "menuitem"
    html5tagsCache["meta"] = "meta"
    html5tagsCache["meter"] = "master"
    html5tagsCache["noscript"] = "noscript"
    html5tagsCache["object"] = "object"
    html5tagsCache["ol"] = "ol"
    html5tagsCache["optgroup"] = "optgroup"
    html5tagsCache["option"] = "option"
    html5tagsCache["output"] = "output"
    html5tagsCache["p"] = "p"
    html5tagsCache["pre"] = "pre"
    html5tagsCache["param"] = "param"
    html5tagsCache["progress"] = "progress"
    html5tagsCache["q"] = "q"
    html5tagsCache["rp"] = "rp"
    html5tagsCache["rt"] = "rt"
    html5tagsCache["ruby"] = "ruby"
    html5tagsCache["s"] = "s"
    html5tagsCache["script"] = "script"
    html5tagsCache["select"] = "select"
    html5tagsCache["source"] = "source"
    html5tagsCache["style"] = "style"
    html5tagsCache["summary"] = "summary"
    html5tagsCache["table"] = "table"
    html5tagsCache["tbody"] = "tbody"
    html5tagsCache["thead"] = "thead"
    html5tagsCache["td"] = "td"
    html5tagsCache["th"] = "th"
    html5tagsCache["template"] = "template"
    html5tagsCache["textarea"] = "textarea"
    html5tagsCache["time"] = "time"
    html5tagsCache["title"] = "title"
    html5tagsCache["tr"] = "tr"
    html5tagsCache["track"] = "track"
    html5tagsCache["ul"] = "ul"
    html5tagsCache["video"] = "video"
  result[] = html5tagsCache

static:
  var i = 0
  for key, value in html5tags().pairs():
    inc i
  echo i