aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-04-03 01:58:48 +0000
committernyamatongwe <devnull@localhost>2002-04-03 01:58:48 +0000
commit154254a66aebb4cf40616c0a80c1b57c5560d3c8 (patch)
tree7117f177a62465861a86aa3ef40473032d1e687b /src/LexHTML.cxx
parent8947d717a43f3026cf3d246e43698d7ba266feaf (diff)
downloadscintilla-mirror-154254a66aebb4cf40616c0a80c1b57c5560d3c8.tar.gz
Patch from Brian Quinlan to include metdata about keyword lists within
lexers.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index 67ee29c5e..d0d584634 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -1851,7 +1851,17 @@ static void ColourisePHPDoc(unsigned int startPos, int length, int initStyle, Wo
sc.Complete();
}
-LexerModule lmHTML(SCLEX_HTML, ColouriseHyperTextDoc, "hypertext");
-LexerModule lmXML(SCLEX_XML, ColouriseHyperTextDoc, "xml");
-LexerModule lmASP(SCLEX_ASP, ColouriseASPDoc, "asp");
-LexerModule lmPHP(SCLEX_PHP, ColourisePHPDoc, "php");
+static const char * const htmlWordListDesc[] = {
+ "HTML elements and attributes",
+ "JavaScript keywords",
+ "VBScript keywords",
+ "Python keywords",
+ "PHP keywords",
+ "SGML and DTD keywords",
+ 0,
+};
+
+LexerModule lmHTML(SCLEX_HTML, ColouriseHyperTextDoc, "hypertext", 0, htmlWordListDesc);
+LexerModule lmXML(SCLEX_XML, ColouriseHyperTextDoc, "xml", 0, htmlWordListDesc);
+LexerModule lmASP(SCLEX_ASP, ColouriseASPDoc, "asp", 0, htmlWordListDesc);
+LexerModule lmPHP(SCLEX_PHP, ColourisePHPDoc, "php", 0, htmlWordListDesc);