Bug 704667 - Take transitions from the comment start state to the data state into account when doing syntax highlighting. r=smaug.

This commit is contained in:
Henri Sivonen 2011-11-29 08:55:09 +02:00
parent 5b5e408e95
commit ae6ef685b6
4 changed files with 4 additions and 0 deletions

View File

@ -334,6 +334,7 @@ nsHtml5Highlighter::Transition(PRInt32 aState, bool aReconsume, PRInt32 aPos)
break;
// most comment states are omitted, because they don't matter to
// highlighting
case NS_HTML5TOKENIZER_COMMENT_START:
case NS_HTML5TOKENIZER_COMMENT_END:
case NS_HTML5TOKENIZER_COMMENT_END_BANG:
case NS_HTML5TOKENIZER_COMMENT_START_DASH:

View File

@ -0,0 +1 @@
<!DOCTYPE html><html><head><title></title><link rel="stylesheet" type="text/css" href="resource://gre-resources/viewsource.css"></head><body id="viewsource" class="wrap"><span class="error comment">&lt;!--&gt;</span> <span class="error comment">&lt;!X&gt;</span>

View File

@ -0,0 +1 @@
<!--> <!X>

View File

@ -16,3 +16,4 @@ fails-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)&&!layersGPUAccelerated) == vi
== bug696651-1.html bug696651-1-ref.html
== bug696651-2.html bug696651-2-ref.html
== view-source:bug700260-1.html view-source:bug700260-1-ref.html
== view-source:bug704667-1.html bug704667-1-ref.html