Menu

#619 Patch for groovy mode

None
open
None
5
2021-10-14
2018-06-19
No

Problem:
Triple quoted strings with HTML markup inside are breaking highlighting.
For example, the following code will be highlighted incorrectly:

def aMultilineString = """
Example
"""
println aMultilineString

Fix:
Triple-quotes literals should be added to "groovy.xml":

<SPAN TYPE="LITERAL1" DELEGATE="LITERAL">
<BEGIN>"""</BEGIN>
<END>"""</END>
</SPAN>

<SPAN TYPE="LITERAL1">
<BEGIN>'''</BEGIN>
<END>'''</END>
</SPAN>

1 Attachments

Discussion

  • Egor Abramovich

    Egor Abramovich - 2018-06-19

    Let me put code example again:

    def aMultilineString = """
    <a href="http://example.com">Example</a>
    """
    println aMultilineString
    
     
  • Alan Ezust

    Alan Ezust - 2019-02-10
    • assigned_to: Alan Ezust
    • Group: -->
     
  • Jean-Francois LARVOIRE

    I agree with this patch. It's sorely needed!

     

Log in to post a comment.