Skip to content

PakhomovAlexander/experimental-gdsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental Groovy dsl project

Dynamic field highlighting in any closure PoC

This proof-of-concept example of dynamic fields highlighting. To see how it works put PoC.gdsl file to your classpath and add Metadata class to package com.apakhomov.groovy.experimental package. in Metadata class you should add following code:

class Metadata {
    List<String> fields = ['FIELD1', 'FIELD2', 'FIELD3']
}

['FIELD1', 'FIELD2', 'FIELD3'] - fields to be recognized in any closure.

Now we have the following highlighting:

transform {
    FIELD1 // highlighted
    FIELD4 // grayed
}

About

Trying to make groovy dsl look better in intelliJ IDEA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages