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
gildor
02/02/2018, 10:10 AM
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
gildor
02/02/2018, 10:12 AM
describe
is usua.lly top level function for Spek.
But
describe
also can be nested
o
orangy
02/02/2018, 3:54 PM
Gradle of course, also kotlinx.html, ktor, etc. These we have on the radar, but I’m not currently tracking Spek progress.
orangy
02/02/2018, 3:55 PM
You don’t use any fancy stuff, just normal builder-style functions with extension lambdas?
g
gildor
02/03/2018, 1:50 PM
Yes, just functions of Spek class + extensions
o
orangy
02/03/2018, 2:52 PM
Are you using DslMarker for DSLs?
g
gildor
02/03/2018, 2:58 PM
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
raniejade
02/06/2018, 5:09 AM
@orangy yes, we are adding DslMarkers for 2.x.
raniejade
02/06/2018, 5:11 AM
Can you give a more visual example? Not sure if I quite understand what you are trying to do.