corn-config / corn

🌽 A simple and pain-free configuration language. Reference libcorn implementation and CLI.
https://cornlang.dev
MIT License
40 stars 5 forks source link

LSP Support #11

Open JakeStanger opened 2 years ago

JakeStanger commented 2 years ago

There should be an LSP uh, thing, to provide full support to VSCode, Vim and all the rest.

yavko commented 6 months ago

Schema validation could be added to this, cuz most serialization formats seem to

JakeStanger commented 6 months ago

Yes I've had schema validation in mind for a long time, but it's never gotten further than a vague thought. I'm not sure what the syntax should be yet - perhaps a "special" input would work, called $$schema? This would keep it consistent with JSON, and avoid collisions with any real input names.

let {
  $$schema = "https://json-schema.org/draft/2019-09/schema"
} in {
  // blah
}