summaryrefslogtreecommitdiff
path: root/design/pml.tex
diff options
context:
space:
mode:
authordeva <deva>2008-12-09 13:55:10 +0000
committerdeva <deva>2008-12-09 13:55:10 +0000
commit9d982a5b4fc9c7efaa56c8f7a4130361f26b0302 (patch)
tree2594bda7b24f43718fcccc5061c417079c01850f /design/pml.tex
parent2d53f43441e22352ded6413e349131fdb8b4f3bf (diff)
A little something about metawidgets, and format strings
Diffstat (limited to 'design/pml.tex')
-rw-r--r--design/pml.tex21
1 files changed, 10 insertions, 11 deletions
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}