new syntactic construct: a{i}
This commit is contained in:
parent
e956abbadd
commit
c138cc36b4
10 changed files with 43 additions and 15 deletions
|
|
@ -22,7 +22,7 @@ type
|
|||
nnkTripleStrLit, nnkNilLit, nnkMetaNode, nnkDotCall,
|
||||
nnkCommand, nnkCall, nnkCallStrLit, nnkExprEqExpr,
|
||||
nnkExprColonExpr, nnkIdentDefs, nnkVarTuple, nnkInfix,
|
||||
nnkPrefix, nnkPostfix, nnkPar, nnkCurly,
|
||||
nnkPrefix, nnkPostfix, nnkPar, nnkCurly, nnkCurlyExpr,
|
||||
nnkBracket, nnkBracketExpr, nnkPragmaExpr, nnkRange,
|
||||
nnkDotExpr, nnkCheckedFieldExpr, nnkDerefExpr, nnkIfExpr,
|
||||
nnkElifExpr, nnkElseExpr, nnkLambda, nnkAccQuoted,
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ proc setBackgroundColor*(bg: TBackgroundColor, bright=false) =
|
|||
# These should be private, but there is no yet
|
||||
# facility for binding local symbols within macros
|
||||
proc styledEchoProcessArg*(s: string) = write stdout, s
|
||||
proc styledEchoProcessArg*(style: TStyle) = setStyle {style}
|
||||
proc styledEchoProcessArg*(style: TStyle) = setStyle({style})
|
||||
proc styledEchoProcessArg*(style: set[TStyle]) = setStyle style
|
||||
proc styledEchoProcessArg*(color: TForegroundColor) = setForeGroundColor color
|
||||
proc styledEchoProcessArg*(color: TBackgroundColor) = setBackGroundColor color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue