summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-30 14:13:59 +0530
committerAndreas Rumpf <rumpf_a@web.de>2018-12-30 09:43:59 +0100
commitc5ad4c10cb976960a37656a55ad2fdbb0add8861 (patch)
tree3b8c89ec5a9269788471ea227f49ae3ccf669709 /compiler/pragmas.nim
parenta6633b965891a7f5e70ac6fcf41d4142145b69c2 (diff)
downloadNim-c5ad4c10cb976960a37656a55ad2fdbb0add8861.tar.gz
Deprecated pragma is now supported on enum fields (#10113)
* {.deprecated.} pragma is now supported for enum fields
* Add tests
* Simplify code
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index 78021667e..58f64f7b0 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -73,6 +73,7 @@ const
                       wThread, wRaises, wLocks, wTags, wGcSafe}
   forVarPragmas* = {wInject, wGensym}
   allRoutinePragmas* = methodPragmas + iteratorPragmas + lambdaPragmas
+  enumFieldPragmas* = {wDeprecated}
 
 proc getPragmaVal*(procAst: PNode; name: TSpecialWord): PNode =
   let p = procAst[pragmasPos]