Skip to content

Commit

Permalink
Corrected highlighting configuration for Jupyter.
Browse files Browse the repository at this point in the history
  • Loading branch information
seidewitz committed Aug 3, 2021
1 parent 2b95d1d commit 573dc54
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h1>
<p id="timestamp">
This report was generated at
<em>
Mon Aug 02 19:00:32 EDT 2021
Tue Aug 03 15:45:31 EDT 2021
</em>.
</p>
</body>
Expand Down
Binary file not shown.
27 changes: 13 additions & 14 deletions install/jupyter/jupyter-sysml-kernel/sysml/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,24 @@ var enableMode = function (CodeMirror) {
return CodeMirror.getMode(config, {
name: "clike",
keywords: words([
"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",
"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", "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", "type", "value", "variant", "variation", "verification", "verify",
"view", "viewpoint", "xor"
"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", "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", "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", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "xor"
]),
defKeywords: words([
"action", "activity", "allocation", "analysis", "attribute", "block", "calc", "case", "comment",
"concern", "connection", "constraint", "def", "doc", "enum", "id", "interface", "item", "link",
"metadata", "objective", "occurrence", "package", "part", "port", "ref", "rendering", "rep",
"requirement", "snapshot", "stakeholder", "state", "subject", "timeslice", "transition", "type",
"value", "verification", "view", "viewpoint"
"requirement", "snapshot", "state", "subject", "timeslice", "transition", "type", "value",
"verification", "view", "viewpoint"
]),
typeFirstDefinitions: true,
atoms: words("true false null"),
Expand Down
27 changes: 13 additions & 14 deletions install/jupyter/jupyterlab-sysml/package/build/mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,24 @@ function defineSysMLv2Mode() {
return CodeMirror.getMode(gc_mode, {
name: 'clike',
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",
"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", "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", "type", "value", "variant", "variation", "verification", "verify",
"view", "viewpoint", "xor"
"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", "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", "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", "use", "variant", "variation", "verification", "verify", "via", "view", "viewpoint", "xor"
].reduce(f_wordify, {}),
defKeywords: [
"action", "activity", "allocation", "analysis", "attribute", "block", "calc", "case", "comment",
"concern", "connection", "constraint", "def", "doc", "enum", "id", "interface", "item", "link",
"metadata", "objective", "occurrence", "package", "part", "port", "ref", "rendering", "rep",
"requirement", "snapshot", "stakeholder", "state", "subject", "timeslice", "transition", "type",
"value", "verification", "view", "viewpoint"
"requirement", "snapshot", "state", "subject", "timeslice", "transition", "type", "value",
"verification", "view", "viewpoint"
].reduce(f_wordify, {}),
typeFirstDefinitions: true,
atoms: ['true', 'false', 'null'].reduce(f_wordify),
Expand Down

0 comments on commit 573dc54

Please sign in to comment.