DanielGavin/ols

#no_broadcast directive is being deleted by formatter

Closed this issue · 1 comments

I have a snippet like this (straight from gordon2d sream):

draw_ellipse :: proc(ctx: ^Context, center: Vec2, #no_broadcast radii: Vec2, col: Color, segments: i32 = 32) { ... }

After applying a odinfmt to the file, #no_broadcast is being stripped out.
My configuration is quite empty:

{
  "$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/ols.schema.json",
  "enable_document_symbols": true,
  "enable_hover": true,
  "enable_snippets": true,
  "enable_semantic_tokens": false,
  "enable_references": true,
  "enable_inlay_hints": false,
  "verbose": true,
  "collections": [{ "name": "core", "path": "/home/user/.odin/Odin/core" }]
}

and there is no odinfmt.json.

I'm on master branch of odin/ols.

This should be fixed now.