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

Already on GitHub? Sign in to your account

Wrong commentstyle in PHP file #39

teranex opened this Issue Dec 10, 2012 · 1 comment


None yet
2 participants

teranex commented Dec 10, 2012

In PHP files, tcomment uses HTML comments on lines with only a single closing brace, while it should use two slashes. tcomment seems to misinterpret such a line a HTML.
For example in the following example file:


    function foobar() {
        echo "foo";

doing a gcc on line 1, will correctly comment the line with html comments. Doing so on line 4 & 5 will use two slashes (//). However on line 6 tcomment will insert html comments: <!-- } -->

@tomtom tomtom closed this in 4803965 Dec 10, 2012

teranex commented Dec 10, 2012

Works perfectly. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment