jsuchal / addendum

Automatically exported from code.google.com/p/addendum
GNU Lesser General Public License v2.1
21 stars 3 forks source link

Case sensitivity of annotations #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to change Addendum so it would ignore cases in
annotations?

All the phpDocumentor tags are in lowercase (@package, @author) but my
annotations start with an uppercase (@Title). That's because I want my
annotation class to be "Title" instead of "title".

When you look at this code you'll see that it's not very pretty:

/**
 * Description
 *
 * @Title('HelloWorld')
 * @package helloworld
 * @author Ruud
 */
class HelloWorldClass {}

Original issue reported on code.google.com by ruudkamphuis@gmail.com on 29 Dec 2009 at 8:45

GoogleCodeExporter commented 9 years ago
Hi,

case insensivity is probably a good idea. 

BTW phpdocumentor tags are tags and not annotations, they have different syntax 
(no 
brackets) a thus will not be parsed by Addendum.

(but this is now considered to change - however it's not so straightforward as 
one 
may think)

Original comment by jan.suc...@gmail.com on 29 Dec 2009 at 9:10