forked from dlang/dmd
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the code highlighter html handling is now a liability; it can double …
…encode things and serves no other purpose. I deleted it all.
- Loading branch information
1 parent
6aa03d5
commit 2dc42a7
Showing
1 changed file
with
2 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2dc42a7There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me explain this a little. In the old scheme, D code had to be escaped, and it used a hard-coded table to do it. It also tracked whether we were in html comments or tags.
All of that hardcoded html stuff is unnecessary with the encoding moved to general. If we keep it,
if(a > 0)
is converted to if(a > 0) in the first step..... then re-encoded to if(a > 0) in the second step, which clearly isn't what we wanted.
I tested this on some files with code examples and found nothing broken.