Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ObjC Literals? #7

Open
e28eta opened this issue Oct 12, 2012 · 6 comments
Open

Support for ObjC Literals? #7

e28eta opened this issue Oct 12, 2012 · 6 comments

Comments

@e28eta
Copy link

e28eta commented Oct 12, 2012

Are you planning to add support for Objective-C Literals?

@the-jack-cox
Copy link

I'll upvote this as well. I looked at the parser and spent a little time trying to figure out how to add it, but my compilers class was 30 years ago and I've forgotten most of it.

@the-jack-cox
Copy link

I'll just follow up and say that I'll be glad to help validate it.

@SuperBarracuda
Copy link

I am also having issue issues with @[ modern objective C syntax, unfortunately this makes it completely useless for me.

Please can you fix it.

@jonreid
Copy link

jonreid commented Feb 5, 2015

Wondered why duplicates weren't being flagged. With logging enabled, I discovered that the parser is choking on Obj-C literals. This is a big setback for an otherwise wonderful tool!

@e28eta
Copy link
Author

e28eta commented Apr 4, 2015

It looks like PR #10 might fix this issue, I haven't had a chance to try it yet.

@e28eta
Copy link
Author

e28eta commented Apr 4, 2015

I was looking into this a little further. Looks like built-in Obj-C support was just released in PMD 5.3. http://pmd.sourceforge.net/pmd-5.3.0/overview/changelog.html

I'm not positive it's successfully parsing all the files in my project yet, but it seems to have handled literal support by recognizing a bare '@' sign as an independent token. A very practical solution for the requirements of CPD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants