summary refs log tree commit diff stats
path: root/nimpretty/tests/expected
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-07-07 20:13:10 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-07 20:13:10 +0200
commitd0616ed115840053f705a8bf45fa5cf566d3e2b1 (patch)
treeea7169b5b77c26584ccd853114b870a79fb1d751 /nimpretty/tests/expected
parent085a21ebf41e5eebe2a735cfad73c0767ab73755 (diff)
downloadNim-d0616ed115840053f705a8bf45fa5cf566d3e2b1.tar.gz
nimpretty: don't introduce extra spaces after a colon or a comma (#11672)
Diffstat (limited to 'nimpretty/tests/expected')
-rw-r--r--nimpretty/tests/expected/exhaustive.nim263
1 files changed, 133 insertions, 130 deletions
diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim
index 046364f4e..a549a5d6b 100644
--- a/nimpretty/tests/expected/exhaustive.nim
+++ b/nimpretty/tests/expected/exhaustive.nim
@@ -486,132 +486,132 @@ type
     HttpPatch        ## Applies partial modifications to a resource.
 
 type
-  HtmlTag* = enum   ## list of all supported HTML tags; order will always be
-                    ## alphabetically
-    tagUnknown,     ## unknown HTML element
-    tagA,           ## the HTML ``a`` element
-    tagAbbr,        ## the deprecated HTML ``abbr`` element
-    tagAcronym,     ## the HTML ``acronym`` element
-    tagAddress,     ## the HTML ``address`` element
-    tagApplet,      ## the deprecated HTML ``applet`` element
-    tagArea,        ## the HTML ``area`` element
-    tagArticle,     ## the HTML ``article`` element
-    tagAside,       ## the HTML ``aside`` element
-    tagAudio,       ## the HTML ``audio`` element
-    tagB,           ## the HTML ``b`` element
-    tagBase,        ## the HTML ``base`` element
-    tagBdi,         ## the HTML ``bdi`` element
-    tagBdo,         ## the deprecated HTML ``dbo`` element
-    tagBasefont,    ## the deprecated HTML ``basefont`` element
-    tagBig,         ## the HTML ``big`` element
-    tagBlockquote,  ## the HTML ``blockquote`` element
-    tagBody,        ## the HTML ``body`` element
-    tagBr,          ## the HTML ``br`` element
-    tagButton,      ## the HTML ``button`` element
-    tagCanvas,      ## the HTML ``canvas`` element
-    tagCaption,     ## the HTML ``caption`` element
-    tagCenter,      ## the deprecated HTML ``center`` element
-    tagCite,        ## the HTML ``cite`` element
-    tagCode,        ## the HTML ``code`` element
-    tagCol,         ## the HTML ``col`` element
-    tagColgroup,    ## the HTML ``colgroup`` element
-    tagCommand,     ## the HTML ``command`` element
-    tagDatalist,    ## the HTML ``datalist`` element
-    tagDd,          ## the HTML ``dd`` element
-    tagDel,         ## the HTML ``del`` element
-    tagDetails,     ## the HTML ``details`` element
-    tagDfn,         ## the HTML ``dfn`` element
-    tagDialog,      ## the HTML ``dialog`` element
-    tagDiv,         ## the HTML ``div`` element
-    tagDir,         ## the deprecated HTLM ``dir`` element
-    tagDl,          ## the HTML ``dl`` element
-    tagDt,          ## the HTML ``dt`` element
-    tagEm,          ## the HTML ``em`` element
-    tagEmbed,       ## the HTML ``embed`` element
-    tagFieldset,    ## the HTML ``fieldset`` element
-    tagFigcaption,  ## the HTML ``figcaption`` element
-    tagFigure,      ## the HTML ``figure`` element
-    tagFont,        ## the deprecated HTML ``font`` element
-    tagFooter,      ## the HTML ``footer`` element
-    tagForm,        ## the HTML ``form`` element
-    tagFrame,       ## the HTML ``frame`` element
-    tagFrameset,    ## the deprecated HTML ``frameset`` element
-    tagH1,          ## the HTML ``h1`` element
-    tagH2,          ## the HTML ``h2`` element
-    tagH3,          ## the HTML ``h3`` element
-    tagH4,          ## the HTML ``h4`` element
-    tagH5,          ## the HTML ``h5`` element
-    tagH6,          ## the HTML ``h6`` element
-    tagHead,        ## the HTML ``head`` element
-    tagHeader,      ## the HTML ``header`` element
-    tagHgroup,      ## the HTML ``hgroup`` element
-    tagHtml,        ## the HTML ``html`` element
-    tagHr,          ## the HTML ``hr`` element
-    tagI,           ## the HTML ``i`` element
-    tagIframe,      ## the deprecated HTML ``iframe`` element
-    tagImg,         ## the HTML ``img`` element
-    tagInput,       ## the HTML ``input`` element
-    tagIns,         ## the HTML ``ins`` element
-    tagIsindex,     ## the deprecated HTML ``isindex`` element
-    tagKbd,         ## the HTML ``kbd`` element
-    tagKeygen,      ## the HTML ``keygen`` element
-    tagLabel,       ## the HTML ``label`` element
-    tagLegend,      ## the HTML ``legend`` element
-    tagLi,          ## the HTML ``li`` element
-    tagLink,        ## the HTML ``link`` element
-    tagMap,         ## the HTML ``map`` element
-    tagMark,        ## the HTML ``mark`` element
-    tagMenu,        ## the deprecated HTML ``menu`` element
-    tagMeta,        ## the HTML ``meta`` element
-    tagMeter,       ## the HTML ``meter`` element
-    tagNav,         ## the HTML ``nav`` element
-    tagNobr,        ## the deprecated HTML ``nobr`` element
-    tagNoframes,    ## the deprecated HTML ``noframes`` element
-    tagNoscript,    ## the HTML ``noscript`` element
-    tagObject,      ## the HTML ``object`` element
-    tagOl,          ## the HTML ``ol`` element
-    tagOptgroup,    ## the HTML ``optgroup`` element
-    tagOption,      ## the HTML ``option`` element
-    tagOutput,      ## the HTML ``output`` element
-    tagP,           ## the HTML ``p`` element
-    tagParam,       ## the HTML ``param`` element
-    tagPre,         ## the HTML ``pre`` element
-    tagProgress,    ## the HTML ``progress`` element
-    tagQ,           ## the HTML ``q`` element
-    tagRp,          ## the HTML ``rp`` element
-    tagRt,          ## the HTML ``rt`` element
-    tagRuby,        ## the HTML ``ruby`` element
-    tagS,           ## the deprecated HTML ``s`` element
-    tagSamp,        ## the HTML ``samp`` element
-    tagScript,      ## the HTML ``script`` element
-    tagSection,     ## the HTML ``section`` element
-    tagSelect,      ## the HTML ``select`` element
-    tagSmall,       ## the HTML ``small`` element
-    tagSource,      ## the HTML ``source`` element
-    tagSpan,        ## the HTML ``span`` element
-    tagStrike,      ## the deprecated HTML ``strike`` element
-    tagStrong,      ## the HTML ``strong`` element
-    tagStyle,       ## the HTML ``style`` element
-    tagSub,         ## the HTML ``sub`` element
-    tagSummary,     ## the HTML ``summary`` element
-    tagSup,         ## the HTML ``sup`` element
-    tagTable,       ## the HTML ``table`` element
-    tagTbody,       ## the HTML ``tbody`` element
-    tagTd,          ## the HTML ``td`` element
-    tagTextarea,    ## the HTML ``textarea`` element
-    tagTfoot,       ## the HTML ``tfoot`` element
-    tagTh,          ## the HTML ``th`` element
-    tagThead,       ## the HTML ``thead`` element
-    tagTime,        ## the HTML ``time`` element
-    tagTitle,       ## the HTML ``title`` element
-    tagTr,          ## the HTML ``tr`` element
-    tagTrack,       ## the HTML ``track`` element
-    tagTt,          ## the HTML ``tt`` element
-    tagU,           ## the deprecated HTML ``u`` element
-    tagUl,          ## the HTML ``ul`` element
-    tagVar,         ## the HTML ``var`` element
-    tagVideo,       ## the HTML ``video`` element
-    tagWbr          ## the HTML ``wbr`` element
+  HtmlTag* = enum  ## list of all supported HTML tags; order will always be
+                   ## alphabetically
+    tagUnknown,    ## unknown HTML element
+    tagA,          ## the HTML ``a`` element
+    tagAbbr,       ## the deprecated HTML ``abbr`` element
+    tagAcronym,    ## the HTML ``acronym`` element
+    tagAddress,    ## the HTML ``address`` element
+    tagApplet,     ## the deprecated HTML ``applet`` element
+    tagArea,       ## the HTML ``area`` element
+    tagArticle,    ## the HTML ``article`` element
+    tagAside,      ## the HTML ``aside`` element
+    tagAudio,      ## the HTML ``audio`` element
+    tagB,          ## the HTML ``b`` element
+    tagBase,       ## the HTML ``base`` element
+    tagBdi,        ## the HTML ``bdi`` element
+    tagBdo,        ## the deprecated HTML ``dbo`` element
+    tagBasefont,   ## the deprecated HTML ``basefont`` element
+    tagBig,        ## the HTML ``big`` element
+    tagBlockquote, ## the HTML ``blockquote`` element
+    tagBody,       ## the HTML ``body`` element
+    tagBr,         ## the HTML ``br`` element
+    tagButton,     ## the HTML ``button`` element
+    tagCanvas,     ## the HTML ``canvas`` element
+    tagCaption,    ## the HTML ``caption`` element
+    tagCenter,     ## the deprecated HTML ``center`` element
+    tagCite,       ## the HTML ``cite`` element
+    tagCode,       ## the HTML ``code`` element
+    tagCol,        ## the HTML ``col`` element
+    tagColgroup,   ## the HTML ``colgroup`` element
+    tagCommand,    ## the HTML ``command`` element
+    tagDatalist,   ## the HTML ``datalist`` element
+    tagDd,         ## the HTML ``dd`` element
+    tagDel,        ## the HTML ``del`` element
+    tagDetails,    ## the HTML ``details`` element
+    tagDfn,        ## the HTML ``dfn`` element
+    tagDialog,     ## the HTML ``dialog`` element
+    tagDiv,        ## the HTML ``div`` element
+    tagDir,        ## the deprecated HTLM ``dir`` element
+    tagDl,         ## the HTML ``dl`` element
+    tagDt,         ## the HTML ``dt`` element
+    tagEm,         ## the HTML ``em`` element
+    tagEmbed,      ## the HTML ``embed`` element
+    tagFieldset,   ## the HTML ``fieldset`` element
+    tagFigcaption, ## the HTML ``figcaption`` element
+    tagFigure,     ## the HTML ``figure`` element
+    tagFont,       ## the deprecated HTML ``font`` element
+    tagFooter,     ## the HTML ``footer`` element
+    tagForm,       ## the HTML ``form`` element
+    tagFrame,      ## the HTML ``frame`` element
+    tagFrameset,   ## the deprecated HTML ``frameset`` element
+    tagH1,         ## the HTML ``h1`` element
+    tagH2,         ## the HTML ``h2`` element
+    tagH3,         ## the HTML ``h3`` element
+    tagH4,         ## the HTML ``h4`` element
+    tagH5,         ## the HTML ``h5`` element
+    tagH6,         ## the HTML ``h6`` element
+    tagHead,       ## the HTML ``head`` element
+    tagHeader,     ## the HTML ``header`` element
+    tagHgroup,     ## the HTML ``hgroup`` element
+    tagHtml,       ## the HTML ``html`` element
+    tagHr,         ## the HTML ``hr`` element
+    tagI,          ## the HTML ``i`` element
+    tagIframe,     ## the deprecated HTML ``iframe`` element
+    tagImg,        ## the HTML ``img`` element
+    tagInput,      ## the HTML ``input`` element
+    tagIns,        ## the HTML ``ins`` element
+    tagIsindex,    ## the deprecated HTML ``isindex`` element
+    tagKbd,        ## the HTML ``kbd`` element
+    tagKeygen,     ## the HTML ``keygen`` element
+    tagLabel,      ## the HTML ``label`` element
+    tagLegend,     ## the HTML ``legend`` element
+    tagLi,         ## the HTML ``li`` element
+    tagLink,       ## the HTML ``link`` element
+    tagMap,        ## the HTML ``map`` element
+    tagMark,       ## the HTML ``mark`` element
+    tagMenu,       ## the deprecated HTML ``menu`` element
+    tagMeta,       ## the HTML ``meta`` element
+    tagMeter,      ## the HTML ``meter`` element
+    tagNav,        ## the HTML ``nav`` element
+    tagNobr,       ## the deprecated HTML ``nobr`` element
+    tagNoframes,   ## the deprecated HTML ``noframes`` element
+    tagNoscript,   ## the HTML ``noscript`` element
+    tagObject,     ## the HTML ``object`` element
+    tagOl,         ## the HTML ``ol`` element
+    tagOptgroup,   ## the HTML ``optgroup`` element
+    tagOption,     ## the HTML ``option`` element
+    tagOutput,     ## the HTML ``output`` element
+    tagP,          ## the HTML ``p`` element
+    tagParam,      ## the HTML ``param`` element
+    tagPre,        ## the HTML ``pre`` element
+    tagProgress,   ## the HTML ``progress`` element
+    tagQ,          ## the HTML ``q`` element
+    tagRp,         ## the HTML ``rp`` element
+    tagRt,         ## the HTML ``rt`` element
+    tagRuby,       ## the HTML ``ruby`` element
+    tagS,          ## the deprecated HTML ``s`` element
+    tagSamp,       ## the HTML ``samp`` element
+    tagScript,     ## the HTML ``script`` element
+    tagSection,    ## the HTML ``section`` element
+    tagSelect,     ## the HTML ``select`` element
+    tagSmall,      ## the HTML ``small`` element
+    tagSource,     ## the HTML ``source`` element
+    tagSpan,       ## the HTML ``span`` element
+    tagStrike,     ## the deprecated HTML ``strike`` element
+    tagStrong,     ## the HTML ``strong`` element
+    tagStyle,      ## the HTML ``style`` element
+    tagSub,        ## the HTML ``sub`` element
+    tagSummary,    ## the HTML ``summary`` element
+    tagSup,        ## the HTML ``sup`` element
+    tagTable,      ## the HTML ``table`` element
+    tagTbody,      ## the HTML ``tbody`` element
+    tagTd,         ## the HTML ``td`` element
+    tagTextarea,   ## the HTML ``textarea`` element
+    tagTfoot,      ## the HTML ``tfoot`` element
+    tagTh,         ## the HTML ``th`` element
+    tagThead,      ## the HTML ``thead`` element
+    tagTime,       ## the HTML ``time`` element
+    tagTitle,      ## the HTML ``title`` element
+    tagTr,         ## the HTML ``tr`` element
+    tagTrack,      ## the HTML ``track`` element
+    tagTt,         ## the HTML ``tt`` element
+    tagU,          ## the deprecated HTML ``u`` element
+    tagUl,         ## the HTML ``ul`` element
+    tagVar,        ## the HTML ``var`` element
+    tagVideo,      ## the HTML ``video`` element
+    tagWbr         ## the HTML ``wbr`` element
 
 
 # bug #11469
@@ -732,7 +732,10 @@ let
       423948999 - 42399
 
 type
-  MyLongEnum = enum                     ## doc comment here
-    first,                              ## this is a long comment here, but please align it
-    secondWithAVeryLongNameMightBreak,  ## this is a short one
-    thirdOne                            ## it's ok
+  MyLongEnum = enum                    ## doc comment here
+    first,                             ## this is a long comment here, but please align it
+    secondWithAVeryLongNameMightBreak, ## this is a short one
+    thirdOne                           ## it's ok
+
+if true: # just one space before comment
+  echo 7