diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-02-26 19:31:42 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-02-26 19:31:42 +0100 |
commit | 272a0ed0daacbdf1f0c02d592b12275b67b80f68 (patch) | |
tree | 6aa36000dec3df651bc69698907cb49757338e17 | |
parent | 9d0c79ff1e55f49f59c4ec403689b8bb714da3ed (diff) | |
parent | 10dce8131ecdecfc0dd71522bf62259ef7f2f2b0 (diff) | |
download | Nim-272a0ed0daacbdf1f0c02d592b12275b67b80f68.tar.gz |
Merge pull request #3908 from oderwat/hara-shebang
Removed `#!` handling (was deprecated long enought)
-rw-r--r-- | compiler/syntaxes.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/syntaxes.nim b/compiler/syntaxes.nim index 021910544..37ea6e2db 100644 --- a/compiler/syntaxes.nim +++ b/compiler/syntaxes.nim @@ -97,10 +97,7 @@ proc parsePipe(filename: string, inputStream: PLLStream): PNode = discard llStreamReadLine(s, line) i = 0 inc linenumber - if line[i] == '#' and line[i+1] in {'?', '!'}: - if line[i+1] == '!': - message(newLineInfo(filename, linenumber, 1), - warnDeprecated, "use '#?' instead; '#!'") + if line[i] == '#' and line[i+1] == '?': inc(i, 2) while line[i] in Whitespace: inc(i) var q: TParser |