hoaproject / Compiler

The Hoa\Compiler library.
https://hoa-project.net/
453 stars 47 forks source link

Update Lexer.php #88

Open flip111 opened 5 years ago

flip111 commented 5 years ago

improve error handling avoid undescriptive php warning

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at ?% when pulling ee15300b7d2686a0f6e5118773d9eae197854bf6 on flip111:patch-1 into c620f44deff0b4c2d0c27560a3b0f5e7e376e001 on hoaproject:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at ?% when pulling ee15300b7d2686a0f6e5118773d9eae197854bf6 on flip111:patch-1 into c620f44deff0b4c2d0c27560a3b0f5e7e376e001 on hoaproject:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at ?% when pulling ee15300b7d2686a0f6e5118773d9eae197854bf6 on flip111:patch-1 into c620f44deff0b4c2d0c27560a3b0f5e7e376e001 on hoaproject:master.

Hywan commented 5 years ago

Can you explain how to reproduce the warning please?

flip111 commented 5 years ago

Put a token with an invalid regex. Maybe try [\d, i don't remember exactly what token i had on hand at the time