Skip to content

Commit

Permalink
Align keywords for 'grammar' with keywords for 'modelica'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Aug 9, 2021
1 parent edc6ce9 commit 8c2e04b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions mlsshared.sty
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,21 @@
breaklines=true,
breakatwhitespace=true,
morekeywords=[1]{%
annotation,assert,block,break,class,connect,connector,constant,constrainedby,discrete,%
each,encapsulated,else,elseif,elsewhen,end,expandable,extends,external,final,flow,for,%
function,if,in,inner,initial,input,import,loop,model,operator,outer,%
output,package,parameter,partial,record,redeclare,replaceable,return,%
stream,terminate,then,type,when,while,algorithm,equation,%
protected,public,and,false,not,or,true,pure,impure,within,%
% Keywords corresponding to morekeywords=[1] for language=modelica
der,connect,assert,terminate,break,return,%
false,true,and,not,or,%
final,each,%
flow,stream,%
input,output,%
discrete,parameter,constant,%
% Keywords corresponding to morekeywords=[2] for language=modelica
annotation,block,class,connector,constrainedby,%
encapsulated,enumeration,else,elseif,elsewhen,end,%
expandable,extends,external,for,%
function,if,in,inner,initial,import,loop,model,operator,outer,%
package,partial,record,redeclare,replaceable,%
then,type,when,while,within,algorithm,equation,%
protected,public,pure,impure,%
},
% Instead of using color to highlight BNF syntactical constructs as below, the production rule names
% are set in italics, so that the syntactical constructs stand out by having upright shape.
Expand Down

0 comments on commit 8c2e04b

Please sign in to comment.