Skip to content

Commit

Permalink
SYSML2-643 Updated highlighting for new "locale" keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
seidewitz committed Mar 7, 2024
1 parent 330e44c commit 3965261
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion org.omg.sysml.jupyter.jupyterlab/src/main/mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function defineSysMLv2Mode(): void {
"defined", "dependency", "derived", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit",
"exit", "expose", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "if", "implies",
"import", "in", "include", "individual", "inout", "interface", "istype", "item", "join", "language",
"library", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "objective",
"library", "locale", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var enableMode = function (CodeMirror) {
"defined", "dependency", "derived", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit",
"exit", "expose", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "if", "implies",
"import", "in", "include", "individual", "inout", "interface", "istype", "item", "join", "language",
"library", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "objective",
"library", "locale", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "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",
Expand Down
2 changes: 1 addition & 1 deletion tool-support/syntax-highlighting/jetbrains/SysML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<option name="HAS_PARENS" value="true" />
<option name="HAS_STRING_ESCAPES" value="true" />
</options>
<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;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" />
<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" />
<keywords2 keywords="!=;!==;#;%;&amp;;*;**;+;-;-&gt;;..;.?;/;:;::;::&gt;;:=;:&gt;;:&gt;&gt;;&lt;;&lt;=;=;==;===;&gt;;&gt;=;?;??;@;@@;^;|;~" />
</highlighting>
<extensionMap>
Expand Down
2 changes: 1 addition & 1 deletion tool-support/syntax-highlighting/jupyter/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var enableMode = function (CodeMirror) {
"defined", "dependency", "derived", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit",
"exit", "expose", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "if", "implies",
"import", "in", "include", "individual", "inout", "interface", "istype", "item", "join", "language",
"library", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "objective",
"library", "locale", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "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",
Expand Down
2 changes: 1 addition & 1 deletion tool-support/syntax-highlighting/jupyter/mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function defineSysMLv2Mode(): void {
"defined", "dependency", "derived", "do", "doc", "else", "end", "entry", "enum", "event", "exhibit",
"exit", "expose", "filter", "first", "flow", "for", "fork", "frame", "from", "hastype", "if", "implies",
"import", "in", "include", "individual", "inout", "interface", "istype", "item", "join", "language",
"library", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "objective",
"library", "locale", "loop", "merge", "message", "meta", "metadata", "nonunique", "not", "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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"repository": {
"keywords": {
"patterns": [
{ "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|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" },
{ "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" },
{ "match": "(#|%|&|\\?|\\?\\?|@@|\\^|\\|)", "name": "keyword.operator.logical.sysml" },
{ "match": "(!=|!==|\\<|\\<=|=|==|===|\\>|\\>=)", "name": "keyword.operator.comparison.sysml" },
{ "match": "(\\*|\\*\\*|\\+|\\-|/)", "name": "keyword.operator.arithmetic.sysml" },
Expand Down

0 comments on commit 3965261

Please sign in to comment.