textmate / groovy.tmbundle

TextMate support for Groovy
69 stars 31 forks source link

Groovy syntax highlighting falsely finds a method invocation in a string method name #21

Open alexr00 opened 2 years ago

alexr00 commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Open a new tab with Groovy language
  2. 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' }


<img width="426" alt="vscode-groovy-syntax" src="https://user-images.githubusercontent.com/94676/188194325-2ed1f375-5658-4726-b3f7-ad45d8c92383.png">

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