Skip to content

Commit a5e4159

Browse files
committed
Merge branch 'ST6RI-800'
2 parents 9d4e353 + 79ad41b commit a5e4159

8 files changed

Lines changed: 27 additions & 26 deletions

File tree

org.omg.sysml.jupyter.jupyterlab/src/main/mode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export function defineSysMLv2Mode(): void {
4848
"occurrence", "of", "or", "ordered", "out", "package", "parallel", "part", "perform", "port", "private",
4949
"protected", "public", "readonly", "redefines", "ref", "references", "render", "rendering", "rep",
5050
"require", "requirement", "return", "satisfy", "send", "snapshot", "specializes", "stakeholder",
51-
"standard", "state", "subject", "subsets", "succession", "then", "timeslice", "to", "transition",
52-
"until", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "when",
53-
"while", "xor"
51+
"standard", "state", "subject", "subsets", "succession", "terminate", "then", "timeslice", "to",
52+
"transition", "until", "use", "variant", "variation", "verification", "verify", "via", "view",
53+
"viewpoint", "when", "while", "xor"
5454
].reduce(f_wordify, {}),
5555
defKeywords: [
5656
"action", "allocation", "analysis", "attribute", "binding", "calc", "case", "comment", "concern",

org.omg.sysml.jupyter.kernel/src/main/resources/sysml/kernel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ var enableMode = function (CodeMirror) {
6060
"occurrence", "of", "or", "ordered", "out", "package", "parallel", "part", "perform", "port", "private",
6161
"protected", "public", "readonly", "redefines", "ref", "references", "render", "rendering", "rep",
6262
"require", "requirement", "return", "satisfy", "send", "snapshot", "specializes", "stakeholder",
63-
"standard", "state", "subject", "subsets", "succession", "then", "timeslice", "to", "transition",
64-
"until", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "when",
65-
"while", "xor"
63+
"standard", "state", "subject", "subsets", "succession", "terminate", "then", "timeslice", "to",
64+
"transition", "until", "use", "variant", "variation", "verification", "verify", "via", "view",
65+
"viewpoint", "when", "while", "xor"
6666
]),
6767
defKeywords: words([
6868
"action", "allocation", "analysis", "attribute", "binding", "calc", "case", "comment", "concern",

org.omg.sysml/src/org/omg/sysml/generation/MOF2SysMLText.xtend

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,18 @@ class MOF2SysMLText extends MOF2KerMLText {
5252
override String getReservedWords() {
5353
// Note: Every word must be preceded and followed by a space.
5454
" about abstract accept action actor after alias all allocate allocation
55-
analysis and as assign assert assoc assume at attribute bind binding block
56-
by calc case comment concern connect connection constraint decide def
57-
default defined dependency derived do doc else end entry enum event exhibit
58-
exit expose filter first flow for fork frame from hastype if implies import
59-
in include individual inout interface istype item join language loop merge
60-
message metadata nonunique not objective occurrence of or ordered out
61-
package parallel part perform port private protected public readonly
62-
redefines ref references render rendering rep require requirement return
63-
satisfy send snapshot specializes stakeholder state subject subsets
64-
succession then timeslice to transition until use variant variation
65-
verification verify via view viewpoint when while xor "
55+
analysis and as assign assert assume at attribute bind binding by
56+
calc case comment concern connect connection constraint decide def default
57+
defined dependency derived do doc else end entry enum event exhibit
58+
exit expose filter first flow for fork frame from hastype if implies
59+
import in include individual inout interface istype item join language
60+
library locale loop merge message meta metadata nonunique not objective
61+
occurrence of or ordered out package parallel part perform port private
62+
protected public readonly redefines ref references render rendering rep
63+
require requirement return satisfy send snapshot specializes stakeholder
64+
standard state subject subsets succession terminate then timeslice to
65+
transition until use variant variation verification verify via view
66+
viewpoint when while xor "
6667
}
6768

6869
static def void main(String[] args) {

tool-support/syntax-highlighting/jetbrains/SysML.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<option name="HAS_PARENS" value="true" />
1212
<option name="HAS_STRING_ESCAPES" value="true" />
1313
</options>
14-
<keywords keywords="about;abstract;accept;action;actor;after;alias;all;allocate;allocation;analysis;and;as;assert;assign;assume;at;attribute;bind;binding;by;calc;case;comment;concern;connect;connection;constraint;decide;def;default;defined;dependency;derived;do;doc;else;end;entry;enum;event;exhibit;exit;expose;false;filter;first;flow;for;fork;frame;from;hastype;if;implies;import;in;include;individual;inout;interface;istype;item;join;language;library;locale;loop;merge;message;meta;metadata;nonunique;not;null;objective;occurrence;of;or;ordered;out;package;parallel;part;perform;port;private;protected;public;readonly;redefines;ref;references;render;rendering;rep;require;requirement;return;satisfy;send;snapshot;specializes;stakeholder;standard;state;subject;subsets;succession;then;timeslice;to;transition;true;until;use;variant;variation;verification;verify;via;view;viewpoint;when;while;xor" ignore_case="false" />
14+
<keywords keywords="about;abstract;accept;action;actor;after;alias;all;allocate;allocation;analysis;and;as;assert;assign;assume;at;attribute;bind;binding;by;calc;case;comment;concern;connect;connection;constraint;decide;def;default;defined;dependency;derived;do;doc;else;end;entry;enum;event;exhibit;exit;expose;false;filter;first;flow;for;fork;frame;from;hastype;if;implies;import;in;include;individual;inout;interface;istype;item;join;language;library;locale;loop;merge;message;meta;metadata;nonunique;not;null;objective;occurrence;of;or;ordered;out;package;parallel;part;perform;port;private;protected;public;readonly;redefines;ref;references;render;rendering;rep;require;requirement;return;satisfy;send;snapshot;specializes;stakeholder;standard;state;subject;subsets;succession;terminate;then;timeslice;to;transition;true;until;use;variant;variation;verification;verify;via;view;viewpoint;when;while;xor" ignore_case="false" />
1515
<keywords2 keywords="!=;!==;#;%;&amp;;*;**;+;-;-&gt;;..;.?;/;:;::;::&gt;;:=;:&gt;;:&gt;&gt;;&lt;;&lt;=;=;==;===;&gt;;&gt;=;?;??;@;@@;^;|;~" />
1616
</highlighting>
1717
<extensionMap>

tool-support/syntax-highlighting/jupyter/kernel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ var enableMode = function (CodeMirror) {
6060
"occurrence", "of", "or", "ordered", "out", "package", "parallel", "part", "perform", "port", "private",
6161
"protected", "public", "readonly", "redefines", "ref", "references", "render", "rendering", "rep",
6262
"require", "requirement", "return", "satisfy", "send", "snapshot", "specializes", "stakeholder",
63-
"standard", "state", "subject", "subsets", "succession", "then", "timeslice", "to", "transition",
64-
"until", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "when",
65-
"while", "xor"
63+
"standard", "state", "subject", "subsets", "succession", "terminate", "then", "timeslice", "to",
64+
"transition", "until", "use", "variant", "variation", "verification", "verify", "via", "view",
65+
"viewpoint", "when", "while", "xor"
6666
]),
6767
defKeywords: words([
6868
"action", "allocation", "analysis", "attribute", "binding", "calc", "case", "comment", "concern",

tool-support/syntax-highlighting/jupyter/mode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export function defineSysMLv2Mode(): void {
4848
"occurrence", "of", "or", "ordered", "out", "package", "parallel", "part", "perform", "port", "private",
4949
"protected", "public", "readonly", "redefines", "ref", "references", "render", "rendering", "rep",
5050
"require", "requirement", "return", "satisfy", "send", "snapshot", "specializes", "stakeholder",
51-
"standard", "state", "subject", "subsets", "succession", "then", "timeslice", "to", "transition",
52-
"until", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "when",
53-
"while", "xor"
51+
"standard", "state", "subject", "subsets", "succession", "terminate", "then", "timeslice", "to",
52+
"transition", "until", "use", "variant", "variation", "verification", "verify", "via", "view",
53+
"viewpoint", "when", "while", "xor"
5454
].reduce(f_wordify, {}),
5555
defKeywords: [
5656
"action", "allocation", "analysis", "attribute", "binding", "calc", "case", "comment", "concern",

tool-support/syntax-highlighting/vscode/sysml/syntaxes/sysml.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"repository": {
1919
"keywords": {
2020
"patterns": [
21-
{ "match": "\\b(about|abstract|accept|action|actor|after|alias|all|allocate|allocation|analysis|and|as|assert|assign|assume|at|attribute|bind|binding|by|calc|case|comment|concern|connect|connection|constraint|decide|def|default|defined|dependency|derived|do|doc|else|end|entry|enum|event|exhibit|exit|expose|false|filter|first|flow|for|fork|frame|from|hastype|if|implies|import|in|include|individual|inout|interface|istype|item|join|language|library|locale|loop|merge|message|meta|metadata|nonunique|not|null|objective|occurrence|of|or|ordered|out|package|parallel|part|perform|port|private|protected|public|readonly|redefines|ref|references|render|rendering|rep|require|requirement|return|satisfy|send|snapshot|specializes|stakeholder|standard|state|subject|subsets|succession|then|timeslice|to|transition|true|until|use|variant|variation|verification|verify|via|view|viewpoint|when|while|xor)\\b", "name": "keyword.other.sysml" },
21+
{ "match": "\\b(about|abstract|accept|action|actor|after|alias|all|allocate|allocation|analysis|and|as|assert|assign|assume|at|attribute|bind|binding|by|calc|case|comment|concern|connect|connection|constraint|decide|def|default|defined|dependency|derived|do|doc|else|end|entry|enum|event|exhibit|exit|expose|false|filter|first|flow|for|fork|frame|from|hastype|if|implies|import|in|include|individual|inout|interface|istype|item|join|language|library|locale|loop|merge|message|meta|metadata|nonunique|not|null|objective|occurrence|of|or|ordered|out|package|parallel|part|perform|port|private|protected|public|readonly|redefines|ref|references|render|rendering|rep|require|requirement|return|satisfy|send|snapshot|specializes|stakeholder|standard|state|subject|subsets|succession|terminate|then|timeslice|to|transition|true|until|use|variant|variation|verification|verify|via|view|viewpoint|when|while|xor)\\b", "name": "keyword.other.sysml" },
2222
{ "match": "(#|%|&|\\?|\\?\\?|@@|\\^|\\|)", "name": "keyword.operator.logical.sysml" },
2323
{ "match": "(!=|!==|\\<|\\<=|=|==|===|\\>|\\>=)", "name": "keyword.operator.comparison.sysml" },
2424
{ "match": "(\\*|\\*\\*|\\+|\\-|/)", "name": "keyword.operator.arithmetic.sysml" },

tool-support/syntax-highlighting/xtext_grammar_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def convert_xml_special(s: str) -> str:
464464
converter.export_jupyter_syntax_highlighting_files(
465465
working_folder="./jupyter",
466466
jupyter_lab_target_folder="../../org.omg.sysml.jupyter.jupyterlab/src/main",
467-
jupyter_kernel_target_folder="../../org.omg.sysml.jupyter.kernel/src/main/resources/kernel")
467+
jupyter_kernel_target_folder="../../org.omg.sysml.jupyter.kernel/src/main/resources/sysml")
468468

469469
end_timestamp = datetime.datetime.now()
470470
elapsed_time = end_timestamp - start_timestamp

0 commit comments

Comments
 (0)