@systems-modeling/jupyterlab-sysml 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/mode.js +6 -1
- package/package.json +1 -1
package/build/mode.js
CHANGED
|
@@ -112,6 +112,7 @@ function defineSysMLv2Mode() {
|
|
|
112
112
|
return false;
|
|
113
113
|
},
|
|
114
114
|
"#": function (stream) {
|
|
115
|
+
var b_first = true;
|
|
115
116
|
do {
|
|
116
117
|
if (stream.match("'", true)) {
|
|
117
118
|
var b_escaped = false;
|
|
@@ -122,9 +123,13 @@ function defineSysMLv2Mode() {
|
|
|
122
123
|
b_escaped = !b_escaped && s_next === '\\';
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
|
-
else {
|
|
126
|
+
else if (stream.match(/\w/, true)) {
|
|
126
127
|
stream.eatWhile(/\w/);
|
|
127
128
|
}
|
|
129
|
+
else if (b_first) {
|
|
130
|
+
return 'operator';
|
|
131
|
+
}
|
|
132
|
+
b_first = false;
|
|
128
133
|
} while (stream.match('::', true));
|
|
129
134
|
return 'keyword';
|
|
130
135
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systems-modeling/jupyterlab-sysml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "A JupyterLab extension for system modeling using SysML",
|
|
5
5
|
"repository": "github:Systems-Modeling/SysML-v2-Pilot-Implementation",
|
|
6
6
|
"author": "SysML v2 Submission Team",
|