https://bugs.kde.org/show_bug.cgi?id=370515

            Bug ID: 370515
           Summary: parser thinks PHP7's IIFE syntax is a syntax error. (
                    immediately invoked function expression )
           Product: kdevelop
           Version: 5.0.1
          Platform: Debian testing
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: PHP
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: divinit...@gmail.com

as the summary says.
example script:
<?php (function(){})(); ?>

that is valid syntax as of PHP7. errors reported by parser:

Expected symbol "semicolonOrCloseTag" (current token: "(" [1103] at 0:21 -
0:21)

Expected symbol "statement" (current token: "(" [1103] at 0:21 - 0:21)

Expected symbol "topStatement" (current token: "(" [1103] at 0:21 - 0:21)

Expected symbol "outerTopStatement" (current token: "(" [1103] at 0:21 - 0:21)

Expected symbol "start" (current token: "(" [1103] at 0:21 - 0:21)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to