Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
abd2f2bb
Commit
abd2f2bb
authored
6 years ago
by
MMesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
labextension compatibility with new jlab and haskell-r codemirror mode
parent
0c9eb242
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3698 additions
and
342 deletions
+3698
-342
package-lock.json
ihaskell_labextension/package-lock.json
+3678
-327
package.json
ihaskell_labextension/package.json
+6
-6
codemirror-ihaskell.ts
ihaskell_labextension/src/codemirror-ihaskell.ts
+14
-9
No files found.
ihaskell_labextension/package-lock.json
View file @
abd2f2bb
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
ihaskell_labextension/package.json
View file @
abd2f2bb
{
"name"
:
"ihaskell_jupyterlab"
,
"version"
:
"0.0.
2
"
,
"version"
:
"0.0.
3
"
,
"description"
:
"adds ihaskell syntax highlighting to jupyterlab"
,
"keywords"
:
[
"jupyter"
,
...
...
@@ -30,11 +30,11 @@
"watch"
:
"tsc -w"
},
"dependencies"
:
{
"@jupyterlab/application"
:
"^0.1
6
.1"
,
"@jupyterlab/apputils"
:
"^0.1
6
.2"
,
"@jupyterlab/docregistry"
:
"^0.1
6
.1"
,
"@jupyterlab/notebook"
:
"^0.1
6
.1"
,
"@jupyterlab/services"
:
"^
2
.0.1"
,
"@jupyterlab/application"
:
"^0.1
7
.1"
,
"@jupyterlab/apputils"
:
"^0.1
7
.2"
,
"@jupyterlab/docregistry"
:
"^0.1
7
.1"
,
"@jupyterlab/notebook"
:
"^0.1
7
.1"
,
"@jupyterlab/services"
:
"^
3
.0.1"
,
"@phosphor/disposable"
:
"^1.1.2"
},
"devDependencies"
:
{
...
...
This diff is collapsed.
Click to expand it.
ihaskell_labextension/src/codemirror-ihaskell.ts
View file @
abd2f2bb
...
...
@@ -5,15 +5,20 @@ import 'codemirror/mode/haskell/haskell';
CodeMirror
.
defineMode
(
"ihaskell"
,
(
config
)
=>
{
let
hmode
=
CodeMirror
.
getMode
(
config
,
"haskell"
);
return
CodeMirror
.
multiplexingMode
(
hmode
,
{
open
:
/:
(?=
!
)
/
,
// Matches : followed by !, but doesn't consume !
close
:
/^
(?!
!
)
/
,
// Matches start of line not followed by !, doesn't consume character
mode
:
CodeMirror
.
getMode
(
config
,
"text/plain"
),
delimStyle
:
"delimit"
}
);
return
CodeMirror
.
multiplexingMode
(
hmode
,
{
open
:
/:
(?=
!
)
/
,
// Matches : followed by !, but doesn't consume !
close
:
/^
(?!
!
)
/
,
// Matches start of line not followed by !, doesn't consume character
mode
:
CodeMirror
.
getMode
(
config
,
"text/plain"
),
delimStyle
:
"delimit"
},
{
open
:
/
\[
r
\|
|
\[
rprint
\|
/
,
close
:
'|]'
,
mode
:
CodeMirror
.
getMode
(
config
,
"text/x-rsrc"
),
delimStyle
:
"delimit"
}
);
});
CodeMirror
.
defineMIME
(
"text/x-ihaskell"
,
"ihaskell"
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment