xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Produce errors for trojan source #139

Open thekid opened 2 years ago

thekid commented 2 years ago

Compilers, interpreters, and build pipelines supporting Unicode should throw errors or warnings for unterminated bidirectional control characters in comments or string literals, and for identifiers with mixed-script confusable characters.

https://trojansource.codes/ https://www.scyon.nl/post/trojans-in-your-source-code

thekid commented 2 years ago

Maybe like GitHub does it here or here:

Compare this: image

...to this: image