marlon407 / code-groovy

21 stars 6 forks source link

Parens in string breaking syntax highlighting #8

Open tryangul opened 5 years ago

tryangul commented 5 years ago

Parens in strings are breaking subsequent syntax highlighting. Surfaced in a Spock test for me.

Ex. in the below block of code, the syntax is broken after the (s)

def "test the function is called the #expected time(s)"() {
        setup:
            featureFlagState = flagEnabled
        when:
            def result = manager.createRegistration()
        then:
            1 * manager.subManager.createRegistration(_,_) >> { "" }
    }