Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3446

Syntax for user-defined PHP functions are under the wrong scope

    Details

      Description

      User-defined functions or any functions for matter which aren't recognized by Aptana are given a scope of constant.other.php. There doesn't seem to be a difference between the following:

      <?php
          //User-defined constant
          FOOBAR;
       
          //User-defined function
          foobar();
       
          //User-defined function with white-space between name and parentheses
          foobar ();
      ?>
      

      I'm guessing that the regex doesn't take into consideration the parentheses following the function name? I'm not really fluent in regex, correct me if I'm wrong/off, but something like this should do the job?

      ([a-zA-Z_][a-zA-Z0-9_]*)\s*(\()
      

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              vanity85 Aziz
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code