mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-09-28 20:13:35 +00:00
Add Modelica language (#1061)
* Add Modelica language * tests/data/Modelica.mo: Correct number of comment lines. Co-authored-by: Thomas Beutlich <modelica@tbeu.de> --------- Co-authored-by: Thomas Beutlich <modelica@tbeu.de>
This commit is contained in:
parent
099092fa1b
commit
554a72e44a
|
@ -971,6 +971,12 @@
|
|||
"quotes": [["\\\"", "\\\""]],
|
||||
"extensions": ["mlt"]
|
||||
},
|
||||
"Modelica": {
|
||||
"line_comment": ["//"],
|
||||
"multi_line_comments": [["/*", "*/"]],
|
||||
"quotes": [["\\\"", "\\\""]],
|
||||
"extensions": ["mo", "mos"]
|
||||
},
|
||||
"ModuleDef": {
|
||||
"name": "Module-Definition",
|
||||
"extensions": ["def"],
|
||||
|
|
21
tests/data/Modelica.mo
Normal file
21
tests/data/Modelica.mo
Normal file
|
@ -0,0 +1,21 @@
|
|||
// 21 lines 13 code 5 comments 3 blanks
|
||||
block Add "Output the sum of the two inputs"
|
||||
extends Interfaces.SI2SO;
|
||||
|
||||
/*
|
||||
parameter section
|
||||
*/
|
||||
parameter Real k1=+1 "Gain of input signal 1";
|
||||
parameter Real k2=+1 "Gain of input signal 2";
|
||||
|
||||
// equation section
|
||||
equation
|
||||
y = k1*u1 + k2*u2;
|
||||
annotation (
|
||||
Documentation(info="<html>
|
||||
<p>
|
||||
Some documentation.
|
||||
</p>
|
||||
</html>"));
|
||||
|
||||
end Add;
|
Loading…
Reference in a new issue