Book a Demo

Author Topic: Parsing Error on PHP code synchronisation  (Read 2228 times)

helmut

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • Helmut Steinke ist hier
    • View Profile
Parsing Error on PHP code synchronisation
« on: February 08, 2006, 02:11:25 am »
Hello
When I use code synchronization on PHP sources which contains the following construct in comments:

// a comment
/*
a next comment
*/

an parsing error occurs with
"Unexpected symbol: /"
When I choose "continue" it works for the rest of the file.

Helmut

thomaskilian

  • Guest
Re: Parsing Error on PHP code synchronisation
« Reply #1 on: February 08, 2006, 03:04:21 am »
If you can reproduce you should send a bug report to Sparx.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Parsing Error on PHP code synchronisation
« Reply #2 on: February 09, 2006, 01:22:59 pm »
I can confirm this issue, we've had a few reports of it before now and it has been fixed for the next release of EA.

Until then, there are three options for avoiding the issue that I can think of.

1. Downgrade to build 785.  The bug was only introduced in 786.
2. Restructure your code to avoid examples of block comments immediately following line comments.
3. Don't try to parse a file.

We apologize for any inconvenience this issue has caused.