Skip to content

Commit

Permalink
Enhancing @since replacements and adding support for @deprecated.…
Browse files Browse the repository at this point in the history
… See: #130 and #133
  • Loading branch information
jaswsinc committed Aug 23, 2016
1 parent cfe0f7f commit f1dc74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psr4/targets/builds/in-base-dir/version-tokens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</filterChain>
</reflexive>

<!-- PHP/JS/CSS/SCSS/BASH @since version tokens. -->
<!-- PHP/JS/CSS/SCSS/BASH @since|deprecated version tokens. -->

<if>
<and>
Expand All @@ -60,7 +60,7 @@
<filterChain>
<replaceRegExp>
<!-- WARNING: Very important for `$1 ${project_versoin}` to have that space. Otherwise the version becomes a part of the replacement code. -->
<regExp pattern="^(\s*\*\s+@since)\s+(?:\$v|[0-9]{2}[xX]{4})(\s|$)" replace="$1 ${project_version}$2" modifiers="um" />
<regExp pattern="^(\s*\*\s+@(?:since|deprecated))\s+(?:\$v|[0-9]{2}[xX]{4,}|[xX]{6,})(\s|$)" replace="$1 ${project_version}$2" modifiers="um" />
</replaceRegExp>
</filterChain>
</reflexive>
Expand Down

0 comments on commit f1dc74b

Please sign in to comment.