ire4ever1190 / mike

The new and improved mikero web framework
35 stars 1 forks source link

Make async pragma have same line number as handler #25

Closed ire4ever1190 closed 1 year ago

ire4ever1190 commented 1 year ago

This makes macroutils.nim not show up in compile errors

Example

import mike

"/" -> get:
  unknownSymbol

run()

Before

foo.nim(3, 5) template/generic instantiation of `->` from here
nimbleDir/mike/macroutils.nim(211, 18) template/generic instantiation of `async` from here
foo.nim(4, 3) Error: undeclared identifier: 'unknownSymbol'

After

foo.nim(3, 5) template/generic instantiation of `->` from here
foo.nim(4, 3) Error: undeclared identifier: 'unknownSymbol'