Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProB 2 Jupyter Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB 2 Jupyter Kernel
Commits
e7ea5de7
Commit
e7ea5de7
authored
Apr 6, 2020
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Fix multiline machines not being detected in cells without ::load
parent
099a52bd
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#40379
passed
May 14, 2020
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/main/java/de/prob2/jupyter/ProBKernel.java
+1
-1
1 addition, 1 deletion
src/main/java/de/prob2/jupyter/ProBKernel.java
with
2 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
e7ea5de7
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
*
Added support for Java 14.
*
Added support for Java 14.
*
Fixed a parse error when a line comment is used on the last line of an expression while any
`:let`
variables are defined.
*
Fixed a parse error when a line comment is used on the last line of an expression while any
`:let`
variables are defined.
*
Fixed detection of B machines in cells without
`::load`
. Previously only single-line machines were recognized.
## [1.1.0](https://www3.hhu.de/stups/downloads/prob2-jupyter/prob2-jupyter-kernel-1.1.0-all.jar)
## [1.1.0](https://www3.hhu.de/stups/downloads/prob2-jupyter/prob2-jupyter-kernel-1.1.0-all.jar)
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/prob2/jupyter/ProBKernel.java
+
1
−
1
View file @
e7ea5de7
...
@@ -91,7 +91,7 @@ public final class ProBKernel extends BaseKernel {
...
@@ -91,7 +91,7 @@ public final class ProBKernel extends BaseKernel {
private
static
final
@NotNull
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
ProBKernel
.
class
);
private
static
final
@NotNull
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
ProBKernel
.
class
);
private
static
final
@NotNull
Pattern
COMMAND_PATTERN
=
Pattern
.
compile
(
"\\s*(\\:[^\\s]*)(?:\\h*(.*))?"
,
Pattern
.
DOTALL
);
private
static
final
@NotNull
Pattern
COMMAND_PATTERN
=
Pattern
.
compile
(
"\\s*(\\:[^\\s]*)(?:\\h*(.*))?"
,
Pattern
.
DOTALL
);
private
static
final
@NotNull
Pattern
MACHINE_CODE_PATTERN
=
Pattern
.
compile
(
"MACHINE\\W.*"
);
private
static
final
@NotNull
Pattern
MACHINE_CODE_PATTERN
=
Pattern
.
compile
(
"MACHINE\\W.*"
,
Pattern
.
DOTALL
);
private
static
final
@NotNull
Pattern
SPACE_PATTERN
=
Pattern
.
compile
(
"\\s*"
);
private
static
final
@NotNull
Pattern
SPACE_PATTERN
=
Pattern
.
compile
(
"\\s*"
);
private
static
final
@NotNull
Pattern
BSYMB_COMMAND_PATTERN
=
Pattern
.
compile
(
"\\\\([a-z]+)"
);
private
static
final
@NotNull
Pattern
BSYMB_COMMAND_PATTERN
=
Pattern
.
compile
(
"\\\\([a-z]+)"
);
private
static
final
@NotNull
Pattern
LATEX_FORMULA_PATTERN
=
Pattern
.
compile
(
"(\\$\\$?)([^\\$]+)\\1"
);
private
static
final
@NotNull
Pattern
LATEX_FORMULA_PATTERN
=
Pattern
.
compile
(
"(\\$\\$?)([^\\$]+)\\1"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment