databricks / sjsonnet

Apache License 2.0
267 stars 55 forks source link

Parse arbitrary exprs after "import" and "importStr" #153

Closed szeiger closed 1 year ago

szeiger commented 2 years ago

Fixes https://github.com/databricks/sjsonnet/issues/138

The spec is not very clear on this but this behavior is consistent with the C++ and Go implementations.

nicklan commented 2 years ago

Is this still something you want to merge? Also, will this catch cases like:

local default = import "foo.jsonnet".DEFAULT;