From 9d982a5b4fc9c7efaa56c8f7a4130361f26b0302 Mon Sep 17 00:00:00 2001
From: deva <deva>
Date: Tue, 9 Dec 2008 13:55:10 +0000
Subject: A little something about metawidgets, and format strings

---
 design/pml.tex | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

(limited to 'design/pml.tex')

diff --git a/design/pml.tex b/design/pml.tex
index 6357a8f..5f6ba37 100644
--- a/design/pml.tex
+++ b/design/pml.tex
@@ -7,12 +7,14 @@
 \definecolor{keywordcolour}{rgb}{0.72, 0.52, 0.04}
 \definecolor{stringcolour}{rgb}{0.73, 0.56, 0.56}
 \definecolor{identifiercolour}{rgb}{0.0, 0.0, 0.0}
+\definecolor{xmlheadercolour}{rgb}{0.62, 0.12, 0.94}
 
 \usepackage{listings}
 \lstset{
   basicstyle=\ttfamily\small,
   keywordstyle=[0]\color{tagcolour},
   keywordstyle=[1]\color{keywordcolour},
+  keywordstyle=[2]\color{xmlheadercolour},
   identifierstyle=\color{identifiercolour},
   commentstyle=\color{commentcolour},
   stringstyle=\color{stringcolour},
@@ -20,19 +22,16 @@
 }
 
 \lstdefinelanguage{PML}{
-  morekeywords=[0]{window,frame,spacer,label,lineedit,textedit,button,%
-    checkbox,togglebutton,radiobuttons,combobox,listbox,multilist}, %
-  morekeywords=[1]{name,value,caption}, %
+  morekeywords=[0]{commit,request,include,pracro,template,macro,
+    scripts,script,maps,map,window,frame,spacer,label,lineedit,textedit,
+    button,metawidget,checkbox,togglebutton,radiobuttons,combobox,listbox,
+    multilist,field}, %
+  morekeywords=[1]{user,name,value,caption,version,encoding,cpr,width,height,layout,%
+    action,regexp,format}, %
+  morekeywords=[2]{xml},%
   tag=**[s]<>,%
   sensitive=f,%
   morestring=[d]",% ??? doubled
-  MoreSelectCharTable=%
-  \lst@CArgX--\relax\lst@DefDelimB{}{}%
-                                  {\ifnum\lst@mode=\lst@tagmode\else
-                                    \expandafter\@gobblethree
-                                    \fi}%
-                                  \lst@BeginComment\lst@commentmode{{\lst@commentstyle}}%
-                                  \lst@CArgX--\relax\lst@DefDelimE{}{}{}%
-                                  \lst@EndComment\lst@commentmode
+  morecomment=[s]{<!--}{-->}%
 }[keywords,comments,strings,html]%
 \lstset{language=PML}
-- 
cgit v1.2.3

