[ 
https://issues.apache.org/jira/browse/GROOVY-11791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18032755#comment-18032755
 ] 

Paul King commented on GROOVY-11791:
------------------------------------

The simple cases (like shown above) are catered for by syntax highlighting but 
in some scenarios the "//" in "http://"; is picked up as the line comment 
delimiter and highlighted as such (in which case the remainder of the URL can 
be difficult to see in some themes). In such cases, you may want to explicitly 
add the quotes, and not use this shortcut.

> Support unquoted URLs in groovysh
> ---------------------------------
>
>                 Key: GROOVY-11791
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11791
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 5.0.3
>
>         Attachments: Screenshot 2025-10-23 at 1.06.04 pm.png
>
>
> I propose something like:
> {code:groovy}
> json = /slurp https://api.github.com/repos/apache/groovy
> {code}
> is automatically converted to:
> {code:groovy}
> json = /slurp "https://api.github.com/repos/apache/groovy";
> {code}
> Supports this kind of interaction:
> !Screenshot 2025-10-23 at 1.06.04 pm.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to