summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-10-08 02:14:42 +0200
committerAraq <rumpf_a@web.de>2011-10-08 02:14:42 +0200
commitc138cc36b4b4ad34f982492939db5ae16f409a88 (patch)
treeca21910d3e774e69eb4f232676c4f1d036386060 /lib
parente956abbaddfb8609bebeff6ffb9d402709020c48 (diff)
downloadNim-c138cc36b4b4ad34f982492939db5ae16f409a88.tar.gz
new syntactic construct: a{i}
Diffstat (limited to 'lib')
-rwxr-xr-xlib/core/macros.nim2
-rwxr-xr-xlib/pure/terminal.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 825979e27..9395366e7 100755
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -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, 

diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim
index ab9c31c8f..0fd631eed 100755
--- a/lib/pure/terminal.nim
+++ b/lib/pure/terminal.nim
@@ -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