Skip to content

Commit

Permalink
Merge pull request #5 from LJBD/master
Browse files Browse the repository at this point in the history
Add some Optimica related keywords
  • Loading branch information
dietmarw committed Sep 14, 2017
2 parents dc1b4f0 + 34fd7a2 commit f15b43a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions listings-modelica.cfg
Expand Up @@ -29,6 +29,8 @@
subtypeof,then,Tuple,type,uniontype,when,while},
morekeywords=[2]{true, false},
% Do not make true,false keywords because fn(true,x, false ) shows up as fn(true,x, *false*)
morekeywords=[3]{optimization,constraint}, % Optimica keywords
morekeywords=[4]{objective,startTime,finalTime,initialGuess},
sensitive=true,
comment=[l]//,
morecomment=[s]{/*}{*/},
Expand All @@ -39,6 +41,8 @@
\definecolor{keywordcolor1}{rgb}{0,0,.4}
\definecolor{keywordcolor2}{rgb}{.90,0,0}
\definecolor{keywordcolor3}{rgb}{.4,0,.8}
\definecolor{keywordcolor4}{rgb}{0.5,0,0.5}
\definecolor{stringcolor}{rgb}{0.133,0.545,0.133}
% \definecolor{listingbgcolor}{rgb}{0.95,0.95,0.95}
Expand All @@ -48,6 +52,8 @@
basicstyle=\ttfamily,
keywordstyle=[1]\color{keywordcolor1}\bfseries,
keywordstyle=[2]\color{keywordcolor2},
keywordstyle=[3]\color{keywordcolor3}\bfseries,
keywordstyle=[4]\color{keywordcolor4},
stringstyle=\color{stringcolor},
% backgroundcolor=\color{listingbgcolor},
framexleftmargin=5pt,
Expand Down

0 comments on commit f15b43a

Please sign in to comment.