Skip to content

Commit b84fff7

Browse files
committed
Updated Jupyter highlighting configuration.
1 parent 5456352 commit b84fff7

8 files changed

Lines changed: 60 additions & 64 deletions

File tree

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,24 @@ export function defineSysMLv2Mode(): void {
3838
return CodeMirror.getMode(gc_mode, {
3939
name: 'clike',
4040
keywords: [
41-
"about", "abstract", "accept", "action", "activity", "affect", "alias", "all", "allocate", "allocation",
42-
"analysis", "and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc",
43-
"case", "comment", "concern", "connect", "connection", "constraint", "decide", "def", "defined",
44-
"dependency", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose",
45-
"feature", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies",
46-
"import", "in", "individual", "inout", "instanceof", "interface", "istype", "item", "join", "language",
47-
"link", "merge", "message", "metadata", "nonunique", "not", "objective", "occurrence", "of", "or",
48-
"ordered", "out", "package", "part", "perform", "port", "private", "protected", "public", "redefines",
49-
"ref", "render", "rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot",
50-
"specializes", "stakeholder", "state", "stream", "subject", "subsets", "succession", "then",
51-
"timeslice", "to", "transition", "type", "value", "variant", "variation", "verification", "verify",
52-
"view", "viewpoint", "xor"
41+
"about", "abstract", "accept", "action", "actor", "alias", "all", "allocate", "allocation", "analysis",
42+
"and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc", "case", "comment",
43+
"concern", "connect", "connection", "constraint", "decide", "def", "default", "defined", "dependency",
44+
"do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose", "feature", "filter",
45+
"first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies", "import", "in",
46+
"include", "individual", "inout", "interface", "istype", "item", "join", "language", "merge", "message",
47+
"metadata", "nonunique", "not", "objective", "occurrence", "of", "or", "ordered", "out", "package",
48+
"parallel", "part", "perform", "port", "private", "protected", "public", "redefines", "ref", "render",
49+
"rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot", "specializes",
50+
"stakeholder", "state", "stream", "subject", "subsets", "succession", "then", "timeslice", "to",
51+
"transition", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "xor"
5352
].reduce(f_wordify, {}),
5453
defKeywords: [
5554
"action", "activity", "allocation", "analysis", "attribute", "block", "calc", "case", "comment",
5655
"concern", "connection", "constraint", "def", "doc", "enum", "id", "interface", "item", "link",
5756
"metadata", "objective", "occurrence", "package", "part", "port", "ref", "rendering", "rep",
58-
"requirement", "snapshot", "stakeholder", "state", "subject", "timeslice", "transition", "type",
59-
"value", "verification", "view", "viewpoint"
57+
"requirement", "snapshot", "state", "subject", "timeslice", "transition", "type", "value",
58+
"verification", "view", "viewpoint"
6059
].reduce(f_wordify, {}),
6160
typeFirstDefinitions: true,
6261
atoms: ['true', 'false', 'null'].reduce(f_wordify),

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,24 @@ var enableMode = function (CodeMirror) {
5050
return CodeMirror.getMode(config, {
5151
name: "clike",
5252
keywords: words([
53-
"about", "abstract", "accept", "action", "activity", "affect", "alias", "all", "allocate", "allocation",
54-
"analysis", "and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc",
55-
"case", "comment", "concern", "connect", "connection", "constraint", "decide", "def", "defined",
56-
"dependency", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose",
57-
"feature", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies",
58-
"import", "in", "individual", "inout", "instanceof", "interface", "istype", "item", "join", "language",
59-
"link", "merge", "message", "metadata", "nonunique", "not", "objective", "occurrence", "of", "or",
60-
"ordered", "out", "package", "part", "perform", "port", "private", "protected", "public", "redefines",
61-
"ref", "render", "rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot",
62-
"specializes", "stakeholder", "state", "stream", "subject", "subsets", "succession", "then",
63-
"timeslice", "to", "transition", "type", "value", "variant", "variation", "verification", "verify",
64-
"view", "viewpoint", "xor"
53+
"about", "abstract", "accept", "action", "actor", "alias", "all", "allocate", "allocation", "analysis",
54+
"and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc", "case", "comment",
55+
"concern", "connect", "connection", "constraint", "decide", "def", "default", "defined", "dependency",
56+
"do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose", "feature", "filter",
57+
"first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies", "import", "in",
58+
"include", "individual", "inout", "interface", "istype", "item", "join", "language", "merge", "message",
59+
"metadata", "nonunique", "not", "objective", "occurrence", "of", "or", "ordered", "out", "package",
60+
"parallel", "part", "perform", "port", "private", "protected", "public", "redefines", "ref", "render",
61+
"rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot", "specializes",
62+
"stakeholder", "state", "stream", "subject", "subsets", "succession", "then", "timeslice", "to",
63+
"transition", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "xor"
6564
]),
6665
defKeywords: words([
6766
"action", "activity", "allocation", "analysis", "attribute", "block", "calc", "case", "comment",
6867
"concern", "connection", "constraint", "def", "doc", "enum", "id", "interface", "item", "link",
6968
"metadata", "objective", "occurrence", "package", "part", "port", "ref", "rendering", "rep",
70-
"requirement", "snapshot", "stakeholder", "state", "subject", "timeslice", "transition", "type",
71-
"value", "verification", "view", "viewpoint"
69+
"requirement", "snapshot", "state", "subject", "timeslice", "transition", "type", "value",
70+
"verification", "view", "viewpoint"
7271
]),
7372
typeFirstDefinitions: true,
7473
atoms: words("true false null"),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<option name="HAS_PARENS" value="true" />
1212
<option name="HAS_STRING_ESCAPES" value="true" />
1313
</options>
14-
<keywords keywords="about;abstract;alias;all;and;as;assoc;behavior;binding;bool;by;class;classifier;comment;composite;conjugates;conjugation;connector;datatype;doc;element;else;end;expr;false;feature;featured;featuring;filter;first;flow;from;function;generalization;hastype;id;if;implies;import;in;inout;instanceof;interaction;inv;is;istype;language;metadata;namespace;nonunique;not;null;of;or;ordered;out;package;port;portion;predicate;private;protected;public;redefines;redefinition;relationship;rep;specializes;step;stream;struct;subclass;subset;subsets;subtype;succession;then;to;true;type;typed;typing;xor" ignore_case="false" />
15-
<keywords2 keywords="!;!=;%;&amp;;&amp;&amp;;*;**;+;-;-&gt;;..;/;:;::;:&gt;;:&gt;&gt;;&lt;;&lt;=;=;==;=&gt;;&gt;;&gt;=;?;??;@;@[;^;^^;|;||;~" />
14+
<keywords keywords="about;abstract;alias;all;and;as;assoc;behavior;binding;bool;by;class;classifier;comment;composite;conjugate;conjugates;conjugation;connector;datatype;default;disjoining;disjoint;doc;element;else;end;expr;false;feature;featured;featuring;filter;first;flow;for;from;function;generalization;hastype;id;if;implies;import;in;inout;interaction;inv;is;istype;language;member;metadata;multiplicity;namespace;nonunique;not;null;of;or;ordered;out;package;portion;predicate;private;protected;public;redefines;redefinition;relationship;rep;specialization;specializes;step;stream;struct;subclassifier;subset;subsets;subtype;succession;then;to;true;type;typed;typing;xor" ignore_case="false" />
15+
<keywords2 keywords="!;!=;%;&amp;;&amp;&amp;;*;**;+;-;-&gt;;..;/;:;::;:&gt;;:&gt;&gt;;&lt;;&lt;=;=;==;=&gt;;&gt;;&gt;=;?;??;@;^;^^;|;||;~" />
1616
</highlighting>
1717
<extensionMap>
1818
<mapping ext="kerml" />

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<option name="HAS_PARENS" value="true" />
1212
<option name="HAS_STRING_ESCAPES" value="true" />
1313
</options>
14-
<keywords keywords="about;abstract;accept;action;activity;affect;alias;all;allocate;allocation;analysis;and;as;assert;assoc;assume;attribute;bind;block;by;calc;case;comment;concern;connect;connection;constraint;decide;def;defined;dependency;do;doc;else;end;entry;enum;event;exhibit;exit;expose;false;feature;filter;first;flow;for;fork;frame;from;hastype;id;if;implies;import;in;individual;inout;instanceof;interface;istype;item;join;language;link;merge;message;metadata;nonunique;not;null;objective;occurrence;of;or;ordered;out;package;part;perform;port;private;protected;public;redefines;ref;render;rendering;rep;require;requirement;return;satisfy;send;snapshot;specializes;stakeholder;state;stream;subject;subsets;succession;then;timeslice;to;transition;true;type;value;variant;variation;verification;verify;view;viewpoint;xor" ignore_case="false" />
15-
<keywords2 keywords="!;!=;%;&amp;;&amp;&amp;;*;**;+;-;-&gt;;..;/;:;::;:&gt;;:&gt;&gt;;&lt;;&lt;=;=;==;=&gt;;&gt;;&gt;=;?;??;@;@[;^;^^;|;||;~" />
14+
<keywords keywords="about;abstract;accept;action;actor;alias;all;allocate;allocation;analysis;and;as;assert;assoc;assume;attribute;bind;block;by;calc;case;comment;concern;connect;connection;constraint;decide;def;default;defined;dependency;do;doc;else;end;entry;enum;event;exhibit;exit;expose;false;feature;filter;first;flow;for;fork;frame;from;hastype;id;if;implies;import;in;include;individual;inout;interface;istype;item;join;language;merge;message;metadata;nonunique;not;null;objective;occurrence;of;or;ordered;out;package;parallel;part;perform;port;private;protected;public;redefines;ref;render;rendering;rep;require;requirement;return;satisfy;send;snapshot;specializes;stakeholder;state;stream;subject;subsets;succession;then;timeslice;to;transition;true;use;variant;variation;verification;verify;via;view;viewpoint;xor" ignore_case="false" />
15+
<keywords2 keywords="!;!=;%;&amp;;&amp;&amp;;*;**;+;-;-&gt;;..;/;:;::;:&gt;;:&gt;&gt;;&lt;;&lt;=;=;==;=&gt;;&gt;;&gt;=;?;??;@;^;^^;|;||;~" />
1616
</highlighting>
1717
<extensionMap>
1818
<mapping ext="sysml" />

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,24 @@ var enableMode = function (CodeMirror) {
5050
return CodeMirror.getMode(config, {
5151
name: "clike",
5252
keywords: words([
53-
"about", "abstract", "accept", "action", "activity", "affect", "alias", "all", "allocate", "allocation",
54-
"analysis", "and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc",
55-
"case", "comment", "concern", "connect", "connection", "constraint", "decide", "def", "defined",
56-
"dependency", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose",
57-
"feature", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies",
58-
"import", "in", "individual", "inout", "instanceof", "interface", "istype", "item", "join", "language",
59-
"link", "merge", "message", "metadata", "nonunique", "not", "objective", "occurrence", "of", "or",
60-
"ordered", "out", "package", "part", "perform", "port", "private", "protected", "public", "redefines",
61-
"ref", "render", "rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot",
62-
"specializes", "stakeholder", "state", "stream", "subject", "subsets", "succession", "then",
63-
"timeslice", "to", "transition", "type", "value", "variant", "variation", "verification", "verify",
64-
"view", "viewpoint", "xor"
53+
"about", "abstract", "accept", "action", "actor", "alias", "all", "allocate", "allocation", "analysis",
54+
"and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc", "case", "comment",
55+
"concern", "connect", "connection", "constraint", "decide", "def", "default", "defined", "dependency",
56+
"do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose", "feature", "filter",
57+
"first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies", "import", "in",
58+
"include", "individual", "inout", "interface", "istype", "item", "join", "language", "merge", "message",
59+
"metadata", "nonunique", "not", "objective", "occurrence", "of", "or", "ordered", "out", "package",
60+
"parallel", "part", "perform", "port", "private", "protected", "public", "redefines", "ref", "render",
61+
"rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot", "specializes",
62+
"stakeholder", "state", "stream", "subject", "subsets", "succession", "then", "timeslice", "to",
63+
"transition", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "xor"
6564
]),
6665
defKeywords: words([
6766
"action", "activity", "allocation", "analysis", "attribute", "block", "calc", "case", "comment",
6867
"concern", "connection", "constraint", "def", "doc", "enum", "id", "interface", "item", "link",
6968
"metadata", "objective", "occurrence", "package", "part", "port", "ref", "rendering", "rep",
70-
"requirement", "snapshot", "stakeholder", "state", "subject", "timeslice", "transition", "type",
71-
"value", "verification", "view", "viewpoint"
69+
"requirement", "snapshot", "state", "subject", "timeslice", "transition", "type", "use", "value",
70+
"verification", "view", "viewpoint"
7271
]),
7372
typeFirstDefinitions: true,
7473
atoms: words("true false null"),

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,24 @@ export function defineSysMLv2Mode(): void {
3838
return CodeMirror.getMode(gc_mode, {
3939
name: 'clike',
4040
keywords: [
41-
"about", "abstract", "accept", "action", "activity", "affect", "alias", "all", "allocate", "allocation",
42-
"analysis", "and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc",
43-
"case", "comment", "concern", "connect", "connection", "constraint", "decide", "def", "defined",
44-
"dependency", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose",
45-
"feature", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies",
46-
"import", "in", "individual", "inout", "instanceof", "interface", "istype", "item", "join", "language",
47-
"link", "merge", "message", "metadata", "nonunique", "not", "objective", "occurrence", "of", "or",
48-
"ordered", "out", "package", "part", "perform", "port", "private", "protected", "public", "redefines",
49-
"ref", "render", "rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot",
50-
"specializes", "stakeholder", "state", "stream", "subject", "subsets", "succession", "then",
51-
"timeslice", "to", "transition", "type", "value", "variant", "variation", "verification", "verify",
52-
"view", "viewpoint", "xor"
41+
"about", "abstract", "accept", "action", "actor", "alias", "all", "allocate", "allocation", "analysis",
42+
"and", "as", "assert", "assoc", "assume", "attribute", "bind", "block", "by", "calc", "case", "comment",
43+
"concern", "connect", "connection", "constraint", "decide", "def", "default", "defined", "dependency",
44+
"do", "doc", "else", "end", "entry", "enum", "event", "exhibit", "exit", "expose", "feature", "filter",
45+
"first", "flow", "for", "fork", "frame", "from", "hastype", "id", "if", "implies", "import", "in",
46+
"include", "individual", "inout", "interface", "istype", "item", "join", "language", "merge", "message",
47+
"metadata", "nonunique", "not", "objective", "occurrence", "of", "or", "ordered", "out", "package",
48+
"parallel", "part", "perform", "port", "private", "protected", "public", "redefines", "ref", "render",
49+
"rendering", "rep", "require", "requirement", "return", "satisfy", "send", "snapshot", "specializes",
50+
"stakeholder", "state", "stream", "subject", "subsets", "succession", "then", "timeslice", "to",
51+
"transition", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "xor"
5352
].reduce(f_wordify, {}),
5453
defKeywords: [
5554
"action", "activity", "allocation", "analysis", "attribute", "block", "calc", "case", "comment",
5655
"concern", "connection", "constraint", "def", "doc", "enum", "id", "interface", "item", "link",
5756
"metadata", "objective", "occurrence", "package", "part", "port", "ref", "rendering", "rep",
58-
"requirement", "snapshot", "stakeholder", "state", "subject", "timeslice", "transition", "type",
59-
"value", "verification", "view", "viewpoint"
57+
"requirement", "snapshot", "state", "subject", "timeslice", "transition", "type", "use", "value",
58+
"verification", "view", "viewpoint"
6059
].reduce(f_wordify, {}),
6160
typeFirstDefinitions: true,
6261
atoms: ['true', 'false', 'null'].reduce(f_wordify),

0 commit comments

Comments
 (0)