3 * Description: Hypertext markup language HTML.
4 * Author: Markku Rossi <mtr@iki.fi>
7 state html_tag extends Highlight
23 state html_entity extends Highlight
31 state html_script_tag extends Highlight
41 /([lL][aA][nN][gG][uU][aA][gG][eE]=\")([^\"]*)(\")/ {
42 html_script_language = $2;
60 state html_skip_script extends Highlight
62 /* Terminator for nested scripts. */
63 /<\/[sS][cC][rR][iI][pP][tT]>/ {
64 from_html_terminator = $0;
69 state html extends HighlightEntry
72 require_state (javascript);
76 /<[sS][cC][rR][iI][pP][tT]/ {
80 /* The default script language is JavaScript. */
81 html_script_language = "JavaScript";
82 call (html_script_tag);
85 if (regmatch(html_script_language, /^javascript.*$/i))
87 /* A nested JavaScript block. */
88 from_html_terminator = "";
89 call (javascript_internal);
91 language_print (from_html_terminator);
96 /* An unknown scripting language, skip it. */
97 from_html_terminator = "";
98 call (html_skip_script);
100 language_print (from_html_terminator);
101 keyword_face (false);
109 keyword_face (false);
115 keyword_face (false);