I suggest you ...

Wrong syntax highlight of array variables inside strings

(btw this is a bug report, not an "idea")

https://3v4l.org/dKU7d

Note the wrong highlight of "$a[f" inside the string

Oh come on, I can't upload a screenshot??

Oh now I do have an "idea": replace this thing with a proper bug tracker

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    teo shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • teo commented  ·   ·  Flag as inappropriate

        And by the way, even my original example was valid.
        See https://3v4l.org/1etv6

        Whether the constant "foo" is defined or not is completely irrelevant to the scope of this issue (also note that the use of an undefined constant only generates a notice; it's a bad practice but not invalid code).

      • teo commented  ·   ·  Flag as inappropriate

        "The highlighter uses the exact same rules as PHP itself" - Evidently, not.

      Feedback and Knowledge Base