nim-lang / NimLime

The official Nim programming language plugin for Sublime Text
MIT License
132 stars 34 forks source link

Fix pragmas #166

Closed AmjadHD closed 1 year ago

AmjadHD commented 1 year ago

when defined(amd64) and defined(windows) and defined(vcc): {.link: "icons/koch-amd64-windows-vcc.res".} when defined(i386) and defined(windows) and defined(vcc): {.link: "icons/koch-i386-windows-vcc.res".}

import std/[os, strutils, parseopt, osproc]

Using std/os instead of os to fail early if config isn't set up properly.

If this fails with: Error: cannot open file: std/os, see

https://github.com/nim-lang/Nim/pull/14291 for explanation + how to fix.

when defined(nimPreviewSlimSystem): import std/[assertions, syncio]


@Varriount. Please merge asap !
ghost commented 1 year ago

@Varriount sorry to ping, but any news? Currently GitHub syntax highlighting for Nim is broken for pragmas and all code after them.