# Author : Frank Bille Jensen <billen@sol.dk>                #
#                                                            #
# -- sgml.lang -- (based on the html.lang definition)        #
# 'Standard Generalized Markup Language (SGML) highlighting' #
# version 0.6.11                                             #
# ---------------------------------------------------------- #
# See the TODO list at the buttom for what's missing.        #

<settings>                     
  language=Standard Generalized Markup Language
  compiler=
  debugger=
  execution=
  auto_indent=1
  use_spaces=1
  tab_stop=2
</settings>

<extensions>
 <item name="sgml" ext="sgml">
 <item name="sgml" ext="sgm">
</extensions>

<syntax>
 <item name="string" start="\"" end="\(\"\|\n\)" color="string">
</syntax>

<pattern>
 <item name="comment" words="\(<!--\|/?/?-->\)" color="comment">
 # Keywords starting with a or A #
 <item name="tags_a1_1" words="</?\(!doctype\|abbrev\|abstract\|accel\|ackno\|acronym\|action\|address\|affiliation\|alt\|anchor\|answer\|appendix\|application\|area\|areaset\|areaspec\)" color="keyword">
 <item name="tags_a1_2" words="</?\(arg\|artheader\|article\|artpagenums\|attribution\|audiodata\|audioobject\|author\|authorblurb\|authorgroup\|authorinitials\)" color="keyword">
 <item name="tags_a2_1" words="</?\(!DOCTYPE\|ABBREV\|ABSTRACT\|ACCEL\|ACKNO\|ACRONYM\|ACTION\|ADDRESS\|AFFILIATION\|ALT\|ANCHOR\|ANSWER\|APPENDIX\|APPLICATION\|AREA\|AREASET\|AREASPEC\)" color="keyword">
 <item name="tags_a2_2" words="</?\(ARG\|ARTHEADER\|ARTICLE\|ARTPAGENUMS\|ATTRIBUTION\|AUDIODATA\|AUDIOOBJECT\|AUTHOR\|AUTHORBLURB\|AUTHORGROUP\|AUTHORINITIALS\)" color="keyword">
 # Keywords starting with b or B #
 <item name="tags_b1_1" words="</?\(beginpage\|bibliodiv\|biblioentry\|bibliography\|bibliomisc\|bibliomixed\|bibliomset\|biblioset\|blockquote\|book\|bookbiblio\|bookinfo\|bridgehead\)" color="keyword">
 <item name="tags_b2_1" words="</?\(BEGINPAGE\|BIBLIODIV\|BIBLIOENTRY\|BIBLIOGRAPHY\|BIBLIOMISC\|BIBLIOMIXED\|BIBLIOMSET\|BIBLIOSET\|BLOCKQUOTE\|BOOK\|BOOKBIBLIO\|BOOKINFO\|BRIDGEHEAD\)" color="keyword">
 # Keywords starting with c or C #
 <item name="tags_c1_1" words="</?\(callout\|calloutlist\|caption\|caution\|chapter\|citation\|citerefentry\|citetitle\|city\|classname\|cmdsynopsis\|co\|collab\|collabname\|colophon\)" color="keyword">
 <item name="tags_c1_2" words="</?\(colspec\|command\|comment\|computeroutput\|confdates\|confgroup\|confnum\|confsponsor\|conftitle\|constant\|contractnum\|contractsponsor\|contrib\)" color="keyword">
 <item name="tags_c1_3" words="</?\(copyright\|corpauthor\|corpname\|country\)" color="keyword">
 <item name="tags_c2_1" words="</?\(CALLOUT\|CALLOUTLIST\|CAPTION\|CAUTION\|CHAPTER\|CITATION\|CITEREFENTRY\|CITETITLE\|CITY\|CLASSNAME\|CMDSYNOPSIS\|CO\|COLLAB\|COLLABNAME\|COLOPHON\)" color="keyword">
 <item name="tags_c2_2" words="</?\(COLSPEC\|COMMAND\|COMMENT\|COMPUTEROUTPUT\|CONFDATES\|CONFGROUP\|CONFNUM\|CONFSPONSOR\|CONFTITLE\|CONSTANT\|CONTRACTNUM\|CONTRACTSPONSOR\|CONTRIB\)" color="keyword">
 <item name="tags_c2_3" words="</?\(COPYRIGHT\|CORPAUTHOR\|CORPNAME\|COUNTRY\)" color="keyword">
 # Keywords starting with d, e, f or D, E, F #
 <item name="tags_d1_1" words="</?\(database\|date\|dediction\|docinfo\|edition\|editor\|email\|emphasis\|entry\|entrytbl\|envar\|epigraph\|equation\|errorcode\|errorname\|errortype\)" color="keyword">
 <item name="tags_d1_2" words="</?\(example\|fax\|figure\|filename\|firstname\|firstterm\|footnote\|footnoteref\|foreignphrase\|formalpara\|funcdef\|funcparams\|funcprototype\|funcsynopsis\|funcsynopsisinfo\|function\)" color="keyword">
 <item name="tags_d2_1" words="</?\(DATABASE\|DATE\|DEDICTION\|DOCINFO\|EDITION\|EDITOR\|EMAIL\|EMPHASIS\|ENTRY\|ENTRYTBL\|ENVAR\|EPIGRAPH\|EQUATION\|ERRORCODE\|ERRORNAME\|ERRORTYPE\)" color="keyword">
 <item name="tags_d2_2" words="</?\(EXAMPLE\|FAX\|FIGURE\|FILENAME\|FIRSTNAME\|FIRSTTERM\|FOOTNOTE\|FOOTNOTEREF\|FOREIGNPHRASE\|FORMALPARA\|FUNCDEF\|FUNCPARAMS\|FUNCPROTOTYPE\|FUNCSYNOPSIS\|FUNCSYNOPSISINFO\|FUNCTION\)" color="keyword">
 # Keywords starting with g, h, i or G, H, I #
 <item name="tags_g1_1" words="</?\(glossary\|glossdef\|glossdiv\|glossentry\|glosslist\|glosssee\|glossseealso\|glossterm\|graphic\|graphicco\|group\|guibutton\|guiicon\|guilabel\)" color="keyword">
 <item name="tags_g1_2" words="</?\(guimenu\|guimenuitem\|guisubmenu\|hardware\|highlights\|holder\|honorific\|imagedata\|imageobject\|imageobjectco\|important\|index\|indexdiv\)" color="keyword">
 <item name="tags_g1_3" words="</?\(indexentry\|indexterm\|informalequation\|informalexample\|informalfigure\|informaltable\|inlineequation\|inlinegraphic\|inlinemediaobject\)" color="keyword">
 <item name="tags_g1_4" words="</?\(interface\|interfacedefinition\|invpartnumber\|isbn\|issn\|issuenum\|itemizedlist\|itermset\)" color="keyword">
 <item name="tags_g2_1" words="</?\(GLOSSARY\|GLOSSDEF\|GLOSSDIV\|GLOSSENTRY\|GLOSSLIST\|GLOSSSEE\|GLOSSSEEALSO\|GLOSSTERM\|GRAPHIC\|GRAPHICCO\|GROUP\|GUIBUTTON\|GUIICON\|GUILABEL\)" color="keyword">
 <item name="tags_g2_2" words="</?\(GUIMENU\|GUIMENUITEM\|GUISUBMENU\|HARDWARE\|HIGHLIGHTS\|HOLDER\|HONORIFIC\|IMAGEDATA\|IMAGEOBJECT\|IMAGEOBJECTCO\|IMPORTANT\|INDEX\|INDEXDIV\)" color="keyword">
 <item name="tags_g2_3" words="</?\(INDEXENTRY\|INDEXTERM\|INFORMALEQUATION\|INFORMALEXAMPLE\|INFORMALFIGURE\|INFORMALTABLE\|INLINEEQUATION\|INLINEGRAPHIC\|INLINEMEDIAOBJECT\)" color="keyword">
 <item name="tags_g2_4" words="</?\(INTERFACE\|INTERFACEDEFINITION\|INVPARTNUMBER\|ISBN\|ISSN\|ISSUENUM\|ITEMIZEDLIST\|ITERMSET\)" color="keyword">
 # Keywords starting with j, k, l or J, K, L #
 <item name="tags_j1_1" words="</?\(jobtitle\|keycap\|keycode\|keycombo\|keysym\|keyword\|keywordset\|label\|legalnotice\|lineage\|lineannotation\|link\|listitem\|literal\|literallayout\)" color="keyword">
 <item name="tags_j1_2" words="</?\(lot\|lotentry\)" color="keyword">
 <item name="tags_j2_1" words="</?\(JOBTITLE\|KEYCAP\|KEYCODE\|KEYCOMBO\|KEYSYM\|KEYWORD\|KEYWORDSET\|LABEL\|LEGALNOTICE\|LINEAGE\|LINEANNOTATION\|LINK\|LISTITEM\|LITERAL\|LITERALLAYOUT\)" color="keyword">
 <item name="tags_j2_2" words="</?\(LOT\|LOTENTRY\)" color="keyword">
 # Keywords starting with m, n, o or M, N, O #
 <item name="tags_m1_1" words="</?\(manvolnum\|markup\|medialabel\|mediaobject\|mediaobjectco\|member\|menuchoice\|modespec\|mousebutton\|msg\|msgaud\|msgentry\|msgexplain\|msginfo\|msglevel\)" color="keyword">
 <item name="tags_m1_2" words="</?\(msgmain\|msgorig\|msgrel\|msgset\|msgsub\|msgtext\|note\|objectinfo\|olink\|option\|optional\|orderedlist\|orgdiv\|orgname\|otheraddr\|othercredit\|othername\)" color="keyword">
 <item name="tags_m2_1" words="</?\(MANVOLNUM\|MARKUP\|MEDIALABEL\|MEDIAOBJECT\|MEDIAOBJECTCO\|MEMBER\|MENUCHOICE\|MODESPEC\|MOUSEBUTTON\|MSG\|MSGAUD\|MSGENTRY\|MSGEXPLAIN\|MSGINFO\|MSGLEVEL\)" color="keyword">
 <item name="tags_m2_2" words="</?\(MSGMAIN\|MSGORIG\|MSGREL\|MSGSET\|MSGSUB\|MSGTEXT\|NOTE\|OBJECTINFO\|OLINK\|OPTION\|OPTIONAL\|ORDEREDLIST\|ORGDIV\|ORGNAME\|OTHERADDR\|OTHERCREDIT\|OTHERNAME\)" color="keyword">
 # Keywords starting with p, q, r or P, Q, R #
 <item name="tags_p1_1" words="</?\(pagenums\|para\|paramdefs\|parameter\|part\|partintro\|phone\|phrase\|pob\|postcode\|preface\|primary\|primaryie\|printhistory\|procedure\|productname\)" color="keyword">
 <item name="tags_p1_2" words="</?\(productnumber\|programlisting\|programlistingco\|prompt\|property\|pubdate\|publisher\|publishername\|pubsnumber\|qandadiv\|qandaentry\|qandaset\|question\|quote\)" color="keyword">
 <item name="tags_p1_3" words="</?\(refclass\|refdescriptor\|refentry\|refentrytitle\|reference\|refmeta\|refmiscinfo\|refname\|refnamediv\|refpurpose\|refsect1\|refsect1info\|refsect2\|refsect2info\)" color="keyword">
 <item name="tags_p1_4" words="</?\(refsect3\|refsect3info\|refsynopsisdiv\|refsynopsisdivinfo\|releaseinfo\|replaceable\|returnvalue\|revhistory\|revision\|revnumber\|revremark\|row\)" color="keyword">
 <item name="tags_p2_1" words="</?\(PAGENUMS\|PARA\|PARAMDEFS\|PARAMETER\|PART\|PARTINTRO\|PHONE\|PHRASE\|POB\|POSTCODE\|PREFACE\|PRIMARY\|PRIMARYIE\|PRINTHISTORY\|PROCEDURE\|PRODUCTNAME\)" color="keyword">
 <item name="tags_p2_2" words="</?\(PRODUCTNUMBER\|PROGRAMLISTING\|PROGRAMLISTINGCO\|PROMPT\|PROPERTY\|PUBDATE\|PUBLISHER\|PUBLISHERNAME\|PUBSNUMBER\|QANDADIV\|QANDAENTRY\|QANDASET\|QUESTION\|QUOTE\)" color="keyword">
 <item name="tags_p2_3" words="</?\(REFCLASS\|REFDESCRIPTOR\|REFENTRY\|REFENTRYTITLE\|REFERENCE\|REFMETA\|REFMISCINFO\|REFNAME\|REFNAMEDIV\|REFPURPOSE\|REFSECT1\|REFSECT1INFO\|REFSECT2\|REFSECT2INFO\)" color="keyword">
 <item name="tags_p2_4" words="</?\(REFSECT3\|REFSECT3INFO\|REFSYNOPSISDIV\|REFSYNOPSISDIVINFO\|RELEASEINFO\|REPLACEABLE\|RETURNVALUE\|REVHISTORY\|REVISION\|REVNUMBER\|REVREMARK\|ROW\)" color="keyword">
 # Keywords starting with s or S #
 <item name="tags_s1_1" words="</?\(sbr\|screen\|screenco\|screeninfo\|screenshot\|secondary\|secondaryie\|sect1\|sect1info\|sect2\|sect2info\|sect3\|sect3info\|sect4\|sect4info\|sect5\|sect5info\)" color="keyword">
 <item name="tags_s1_2" words="</?\(section\|sectioninfo\|see\|seealso\|seealsoie\|seeie\|seg\|seglistitem\|segmentedlist\|segtitle\|seriesinfo\|seriesvolnums\|set\|setindex\|setinfo\|sgmltag\)" color="keyword">
 <item name="tags_s1_3" words="</?\(shortaffil\|shortcut\|sidebar\|simpara\|simplelist\|simplesect\|spanspec\|state\|step\|street\|structfield\|structname\|subject\|subjectset\|subjectterm\|subscript\)" color="keyword">
 <item name="tags_s1_4" words="</?\(substeps\|subtitle\|superscript\|surname\|symbol\|synopfragment\|synopfragmentref\|synopsis\|systemitem\)" color="keyword">
 <item name="tags_s2_1" words="</?\(SBR\|SCREEN\|SCREENCO\|SCREENINFO\|SCREENSHOT\|SECONDARY\|SECONDARYIE\|SECT1\|SECT1INFO\|SECT2\|SECT2INFO\|SECT3\|SECT3INFO\|SECT4\|SECT4INFO\|SECT5\|SECT5INFO\)" color="keyword">
 <item name="tags_s2_2" words="</?\(SECTION\|SECTIONINFO\|SEE\|SEEALSO\|SEEALSOIE\|SEEIE\|SEG\|SEGLISTITEM\|SEGMENTEDLIST\|SEGTITLE\|SERIESINFO\|SERIESVOLNUMS\|SET\|SETINDEX\|SETINFO\|SGMLTAG\)" color="keyword">
 <item name="tags_s2_3" words="</?\(SHORTAFFIL\|SHORTCUT\|SIDEBAR\|SIMPARA\|SIMPLELIST\|SIMPLESECT\|SPANSPEC\|STATE\|STEP\|STREET\|STRUCTFIELD\|STRUCTNAME\|SUBJECT\|SUBJECTSET\|SUBJECTTERM\|SUBSCRIPT\)" color="keyword">
 <item name="tags_s2_4" words="</?\(SUBSTEPS\|SUBTITLE\|SUPERSCRIPT\|SURNAME\|SYMBOL\|SYNOPFRAGMENT\|SYNOPFRAGMENTREF\|SYNOPSIS\|SYSTEMITEM\)" color="keyword">
 # Keywords starting with t, u, v, w, x, y or T, U, V, W, X, Y #
 <item name="tags_t1_1" words="</?\(table\|tbody\|term\|tertiary\|tertiaryie\|textobject\|tfoot\|tgroup\|thead\|tip\|title\|titleabbrev\|toc\|tocback\|tocchap\|tocentry\|tocfront\|toclevel1\)" color="keyword">
 <item name="tags_t1_2" words="</?\(toclevel2\|toclevel3\|toclevel4\|toclevel5\|tocpart\|token\|trademark\|type\|ulink\|userinput\|varargs\|variablelist\|varlistentry\|varname\|videodata\|videoobject\)" color="keyword">
 <item name="tags_t1_3" words="</?\(void\|volumenum\|warning\|wordasword\|xref\|year\)" color="keyword">
 <item name="tags_t2_1" words="</?\(TABLE\|TBODY\|TERM\|TERTIARY\|TERTIARYIE\|TEXTOBJECT\|TFOOT\|TGROUP\|THEAD\|TIP\|TITLE\|TITLEABBREV\|TOC\|TOCBACK\|TOCCHAP\|TOCENTRY\|TOCFRONT\|TOCLEVEL1\)" color="keyword">
 <item name="tags_t2_2" words="</?\(TOCLEVEL2\|TOCLEVEL3\|TOCLEVEL4\|TOCLEVEL4\|TOCPART\|TOKEN\|TRADEMARK\|TYPE\|ULINK\|USERINPUT\|VARARGS\|VARIABLELIST\|VARLISTENTRY\|VARNAME\|VIDEODATA\|VIDEOOBJECT\)" color="keyword">
 <item name="tags_t2_3" words="</?\(VOID\|VOLUMENUM\|WARNING\|WORDASWORD\|XREF\|YEAR\)" color="keyword">
 #
 <item name="hex" words="#[a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9]" color="hexidecimal">
 <item name="assignment" words="\(=\|+\|-\|&\)" color="operator">
 <item name="close" words=">" color="keyword">
</pattern>

<embedded>
 # The common attributes #
 <item name="common1" start="<" end=">" words="\b\(arch\|conformance\|id\|lang\|os\|remap\|role\|revision\|revisionflag\|userlevel\|vendor\|xreflabel\)\b" color="data_type">
 <item name="common2" start="<" end=">" words="\b\(ARCH\|CONFORMANCE\|ID\|LANG\|OS\|REMAP\|ROLE\|REVISION\|REVISIONFLAG\|USERLEVEL\|VENDOR\|XREFLABEL\)\b" color="data_type">
 # Rest of the attributes #
 <item name="misc1_1" start="<" end=">" words="\b\(action\|align\|application\|arearefs\|baseform\|char\|charoff\|choice\|class\|cmdlength\|colname\|colnum\|cols\|colsep\|columns\|colwidth\|contents\)\b" color="data_type">
 <item name="misc1_2" start="<" end=">" words="\b\(continuation\|coords\|defaultlabel\|depth\|endterm\|entityref\|fileref\|float\|format\|fpi\|frame\|inheritnum\|label\|linkends\|linkmode\|localinfo\)\b" color="data_type">
 <item name="misc1_3" start="<" end=">" words="\b\(mark\|moreinfo\|morerows\|nameend\|namest\|numeration\|orient\|otheraction\|otherterm\|otherunits\|override\|pagenum\|parentbook\|path\|performance\|pgwide\|pubwork\)\b" color="data_type">
 <item name="misc1_4" start="<" end=">" words="\b\(relation\|renderas\|rep\|rotate\|rowsep\|scale\|scalefit\|scheme\|scope\|sepchar\|significance\|sortas\|spacing\|spanname\|srccredit\|startref\|status\)\b" color="data_type">
 <item name="misc1_5" start="<" end=">" words="\b\(subject\|tabstyle\|targetdocent\|termlength\|tgroupstyle\|tocentry\|type\|units\|url\|valign\|weight\|width\|zone\)\b" color="data_type">
 <item name="misc2_1" start="<" end=">" words="\b\(ACTION\|ALIGN\|APPLICATION\|AREAREFS\|BASEFORM\|CHAR\|CHAROFF\|CHOICE\|CLASS\|CMDLENGTH\|COLNAME\|COLNUM\|COLS\|COLSEP\|COLUMNS\|COLWIDTH\|CONTENTS\)\b" color="data_type">
 <item name="misc2_2" start="<" end=">" words="\b\(CONTINUATION\|COORDS\|DEFAULTLABEL\|DEPTH\|ENDTERM\|ENTITYREF\|FILEREF\|FLOAT\|FORMAT\|FPI\|FRAME\|INHERITNUM\|LABEL\|LINKENDS\|LINKMODE\|LOCALINFO\)\b" color="data_type">
 <item name="misc2_3" start="<" end=">" words="\b\(MARK\|MOREINFO\|MOREROWS\|NAMEEND\|NAMEST\|NUMERATION\|ORIENT\|OTHERACTION\|OTHERTERM\|OTHERUNITS\|OVERRIDE\|PAGENUM\|PARENTBOOK\|PATH\|PERFORMANCE\|PGWIDE\|PUBWORK\)\b" color="data_type">
 <item name="misc2_4" start="<" end=">" words="\b\(RELATION\|RENDERAS\|REP\|ROTATE\|ROWSEP\|SCALE\|SCALEFIT\|SCHEME\|SCOPE\|SEPCHAR\|SIGNIFICANCE\|SORTAS\|SPACING\|SPANNAME\|SRCCREDIT\|STARTREF\|STATUS\)\b" color="data_type">
 <item name="misc2_5" start="<" end=">" words="\b\(SUBJECT\|TABSTYLE\|TARGETDOCENT\|TERMLENGTH\|TGROUPSTYLE\|TOCENTRY\|TYPE\|UNITS\|URL\|VALIGN\|WEIGHT\|WIDTH\|ZONE\)\b" color="data_type">
</embedded>




# TODO                                                       #
# ---------------------------------------------------------- #
# This version includes both capitalized and non-capitalized #
# tags (i.e. 'book' and 'BOOK').                             #
# Needs to implement a third version of capitalization; the  #
# one that is in the DocBook reference (i.e. 'PageNums').    #
# The same with the attributes.

