Parse and Tokenize a part of PHPDocComment with own Parser and Lexer

Answered

Hey,

I'm looking for the ability to parse and tokenize a part of PHPDoc by my own. But I don't know how to do it, I had different approaches with the file type (overring php file type and so on), but that did not work well. Could someone give me a hint? :)

Thx

0
3 comments

What do you want to achieve?

1

I want to highlight doctrine annotations and add further code assistance (like formatting, syntax error annotating). For this I already implemented my own lexer and parser. Now I need to know, how to "inject" the parsing into the PHPDocComment. 

0

Please sign in to leave a comment.