Fix a syntax error for non-namespaced tags.

Introduced in #d4dda5
Make completion context extracted properly even if it spans multiple lines.

The previous implementation was strictly line based and the context
extracted for later use would not be a complete statement before the cursor.

This prevented the plugin select the correct completion branch in cases like:

    use ArrayObject,
        ArrayIte ...

Or

    $some_long_variable
        ->some ...

and many other cases.