You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2018/06/01 15:49:00 UTC
[jira] [Commented] (GROOVY-8626) Enable usage of @ as an identifier
letter - as a standalone and in the middle of a word
[ https://issues.apache.org/jira/browse/GROOVY-8626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498148#comment-16498148 ]
Daniel Sun commented on GROOVY-8626:
------------------------------------
You can write an email in a string, e.g.
{code:java}
person {
name 'Daniel Sun'
email 'sunlan@apache.org'
}
{code}
> Enable usage of @ as an identifier letter - as a standalone and in the middle of a word
> ----------------------------------------------------------------------------------------
>
> Key: GROOVY-8626
> URL: https://issues.apache.org/jira/browse/GROOVY-8626
> Project: Groovy
> Issue Type: New Feature
> Components: Compiler
> Affects Versions: 2.5.0
> Reporter: Alexander Klein
> Priority: Major
> Labels: compiler, dsl, lexer
>
> For writing DSL's it would be helpful to use the @ sign standalone as a custom Operator implemented by custom AST transformations.
> As well it would be great to be possible to write eg. email addresses without quotes to be picked up by an AST transformation.
> This requires @ as a single char and @ not at the beginning - to prevent problems with annotation literals.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)