darklua icon indicating copy to clipboard operation
darklua copied to clipboard

Error when trying to parse inline attributes like `@native`

Open spelled-ayayron opened this issue 9 months ago • 0 comments

I'm getting the following error when trying to use the @native inline attribute to tag a function for native code generation.

unable to parse `src\Common\FMShapecast\Shapes\Block.luau`: error occurred while tokenizing: unexpected character @ (30:2 to 30:3)

I encountered this while importing this Fast Minkowski Shapecast module into my project. I'm able to get around this for now using --!native at the top of the file but I would like to avoid using native code generation on the entirety of the file and just on the functions that I specify for memory and server startup time constraints.

spelled-ayayron avatar Mar 27 '25 10:03 spelled-ayayron