eletrotupi / tcc/ commit / 4e19d36

thesis: add typescript/js support for code/listings

Pedro Lucas Porcellis porcellis@eletrotupi.com · 1 month ago 4e19d3664cd20e523513a8a1d4fbc3af32d37cfa Browse files
Parents 16c9c08
Changed files
1
Additions
+32
Deletions
0
monografia/textsi.cls
1 1
%==============================================================================
2 2
% Identificação
3 3
%==============================================================================
4 4
\def\currversion{3/5/2014}
5 5

121 121
  comment=[l]{\#},
122 122
  morestring=[b]",
123 123
  morestring=[b]',
124 124
}
125 125

126 +
\lstdefinelanguage{javascript}{
127 +
  keywords={async,await,break,case,catch,class,const,continue,debugger,default,
128 +
            delete,do,else,export,extends,false,finally,for,function,if,import,
129 +
            in,instanceof,let,new,null,of,return,static,super,switch,this,throw,
130 +
            true,try,typeof,var,void,while,with,yield},
131 +
  otherkeywords={=>},
132 +
  sensitive=true,
133 +
  comment=[l]{//},
134 +
  morecomment=[s]{/*}{*/},
135 +
  morestring=[b]",
136 +
  morestring=[b]',
137 +
  morestring=[b]`,
138 +
}
139 +

140 +
\lstdefinelanguage{typescript}{
141 +
  keywords={abstract,any,as,async,await,boolean,break,case,catch,class,const,
142 +
            continue,debugger,declare,default,delete,do,else,enum,export,
143 +
            extends,false,finally,for,from,function,get,if,implements,import,
144 +
            in,infer,instanceof,interface,keyof,let,module,namespace,never,
145 +
            new,null,number,object,of,override,private,protected,public,readonly,
146 +
            return,set,static,string,super,switch,symbol,this,throw,true,try,
147 +
            type,typeof,undefined,unique,unknown,var,void,while,with,yield},
148 +
  otherkeywords={=>,:},
149 +
  sensitive=true,
150 +
  comment=[l]{//},
151 +
  morecomment=[s]{/*}{*/},
152 +
  morecomment=[s]{/**C@}{*/},
153 +
  morestring=[b]",
154 +
  morestring=[b]',
155 +
  morestring=[b]`,
156 +
}
157 +

126 158
\lstset{
127 159
  language=yaml,
128 160
  basicstyle=\ttfamily\small,
129 161
  keywordstyle=\color{azulufpel}\bfseries,
130 162
  commentstyle=\color{verdeufpel}\itshape,
973 1005
  \clearpage%
974 1006
  \mbox{}\vfill\begin{flushright}%
975 1007
  }{%
976 1008
  \end{flushright}%
977 1009
}