groovy.tmbundle
groovy.tmbundle copied to clipboard
Groovy syntax highlighting falsely finds a method invocation in a string method name
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.70.2, 1.71.0
- OS Version: macOS
Steps to Reproduce:
- Open a new tab with Groovy language
- Type or paste below code
def 'foo(bar)'() {
println 'correct syntax highlight'
}
def 'foo (bar)'() {
println 'correct syntax highlight'
}
def 'f oo(bar)'() {
println 'incorrect syntax highlight'
}
def ' foo(bar)'() {
println 'incorrect syntax highlight'
}

Originally from @dawidsawa in https://github.com/microsoft/vscode/issues/159928