We are prototyping a special DSL highlighting that...
# spek
o
We are prototyping a special DSL highlighting that hides the “syntax” highlighting and provides an option to have a custom highlighting on a DSL. What would be Spek functions to consider a top level DSL to highlight? We’d like to experiment with it. /cc @pavel.talanov
😱 2
👍 2
g
It’s really cool feature. Do you consider to experiment with #gradle kotlin-dsl? I think it will be really helpful there, because now too many extensions function there, so highlighting looks not very good
👍 1
describe
is usua.lly top level function for Spek. But
describe
also can be nested
o
Gradle of course, also kotlinx.html, ktor, etc. These we have on the radar, but I’m not currently tracking Spek progress.
You don’t use any fancy stuff, just normal builder-style functions with extension lambdas?
g
Yes, just functions of Spek class + extensions
o
Are you using DslMarker for DSLs?
g
I’m not a Spek contributor, but there is no DslMarkers, but it’s definitely should be added to Spek, for example to prevent actions nesting
👍 1
r
@orangy yes, we are adding DslMarkers for 2.x.
Can you give a more visual example? Not sure if I quite understand what you are trying to do.
o
I can do it later this or next week
💯 1