[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] [Comment Edited] (VELOCITY-960) Documentation inconsistency for use of hypens on identifiers
From:       "Michael Osipov (Jira)" <jira () apache ! org>
Date:       2022-11-09 11:55:23
Message-ID: JIRA.13500664.1667983745000.85158.1667995320041 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/VELOCITY-960?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631027#comment-17631027 ] \


Michael Osipov edited comment on VELOCITY-960 at 11/9/22 12:01 PM:
-------------------------------------------------------------------

The "parser.allows.dash.identifiers" mention is a reference to a long disappeared \
name for this property.

The property name is "parser.allow_hyphen_in_identifiers", and it's a hyphen, we're \
all good.

[~calvernaz] Thanks for catching this documentation glitch!



was (Author: claude):
The "parser.allows.dash.identifiers" mention is a reference to a long disappeared \
name for this property.

The property name is "parser.allow_hyphen_in_identifiers", and it's a hyphen, we're \
all good.

[~calvernaz] Thanks for catching this documentation glinche!


> Documentation inconsistency for use of hypens on identifiers 
> -------------------------------------------------------------
> 
> Key: VELOCITY-960
> URL: https://issues.apache.org/jira/browse/VELOCITY-960
> Project: Velocity
> Issue Type: Bug
> Reporter: Cesar Alvernaz
> Priority: Major
> Labels: doc
> 
> Regarding the use of hypens on identifiers, the documentation doesn't look \
> consistent. Which one is recommended?   \
> [Here|https://velocity.apache.org/engine/2.3/configuration.html] states the \
>                 following:
> *{{parser.allow_hyphen_in_identifiers = false}}*
> {quote}This is a backward compatibility option, false by default, which allows the \
> '{*}{{-}}{*}' character inside variable identifiers (available since 2.1). If \
> enabled, be warned that you will have to surround the mathematical minus sign with \
> spaces for it to be correctly interpreted. {quote}
> 
> But [here|https://velocity.apache.org/engine/2.3/vtl-reference.html], the \
> configuration is different:   {quote}{{If the  *parser.allows.dash.identifiers*}} \
> configuration value is set to true, then the *-* dash is also allowed in \
> identifiers (and must be surrounded by spaces to be interpreted as an arithmetic \
> minus operator).}} {quote}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic