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
bf0a0f0d
Commit
bf0a0f0d
authored
Aug 28, 2021
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jupyterlab-ihaskell: more selective type ignoring
parent
2638434c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
package.json
jupyterlab-ihaskell/labextension/package.json
+1
-1
568.0a66b84165fcd9269fef.js
...-ihaskell/labextension/static/568.0a66b84165fcd9269fef.js
+1
-1
remoteEntry.f69020d92b044e1b4f22.js
...l/labextension/static/remoteEntry.f69020d92b044e1b4f22.js
+1
-1
codemirror-ihaskell.ts
jupyterlab-ihaskell/src/codemirror-ihaskell.ts
+4
-3
No files found.
jupyterlab-ihaskell/labextension/package.json
View file @
bf0a0f0d
...
...
@@ -47,7 +47,7 @@
"extension"
:
true
,
"outputDir"
:
"labextension"
,
"_build"
:
{
"load"
:
"static/remoteEntry.
5f537af78b2d9bc49249
.js"
,
"load"
:
"static/remoteEntry.
f69020d92b044e1b4f22
.js"
,
"extension"
:
"./extension"
}
}
...
...
jupyterlab-ihaskell/labextension/static/568.
f929c843de49e70d7844
.js
→
jupyterlab-ihaskell/labextension/static/568.
0a66b84165fcd9269fef
.js
View file @
bf0a0f0d
"use strict"
;(
self
.
webpackChunkjupyterlab_ihaskell
=
self
.
webpackChunkjupyterlab_ihaskell
||
[]).
push
([[
568
],{
291
:(
e
,
l
,
t
)
=>
{
Object
.
defineProperty
(
l
,
"__esModule"
,{
value
:
!
0
});
const
i
=
t
(
36
);
l
.
defineIHaskellMode
=
function
({
CodeMirror
:
e
}){
i
.
Mode
.
ensure
(
"haskell"
),
i
.
Mode
.
ensure
(
"r"
),
e
.
defineMode
(
"ihaskell"
,(
l
=>
{
let
t
=
e
.
getMode
(
l
,
"haskell"
);
return
e
.
multiplexingMode
(
t
,{
open
:
/:
(?=
!
)
/
,
close
:
/^
(?!
!
)
/
,
mode
:
e
.
getMode
(
l
,
"text/plain"
),
delimStyle
:
"delimit"
},{
open
:
/
\[
r
\|
|
\[
rprint
\|
|
\[
rgraph
\|
/
,
close
:
/
\|\]
/
,
mode
:
e
.
getMode
(
l
,
"text/x-rsrc"
),
delimStyle
:
"delimit"
})})),
e
.
defineMIME
(
"text/x-ihaskell"
,
"ihaskell"
),
e
.
modeInfo
.
push
({
ext
:[
"hs"
],
mime
:
"text/x-ihaskell"
,
mode
:
"ihaskell"
,
name
:
"ihaskell"
})}},
568
:(
e
,
l
,
t
)
=>
{
Object
.
defineProperty
(
l
,
"__esModule"
,{
value
:
!
0
});
const
i
=
t
(
36
),
o
=
t
(
291
),
s
=
{
id
:
"ihaskell"
,
autoStart
:
!
0
,
requires
:[
i
.
ICodeMirror
],
activate
:(
e
,
l
)
=>
{
o
.
defineIHaskellMode
(
l
),
console
.
log
(
"ihaskell codemirror activated"
)}};
l
.
default
=
s
}}]);
\ No newline at end of file
"use strict"
;(
self
.
webpackChunkjupyterlab_ihaskell
=
self
.
webpackChunkjupyterlab_ihaskell
||
[]).
push
([[
568
],{
291
:(
e
,
l
,
t
)
=>
{
Object
.
defineProperty
(
l
,
"__esModule"
,{
value
:
!
0
});
const
i
=
t
(
36
);
l
.
defineIHaskellMode
=
function
({
CodeMirror
:
e
}){
i
.
Mode
.
ensure
(
"haskell"
),
i
.
Mode
.
ensure
(
"r"
),
e
.
defineMode
(
"ihaskell"
,(
l
=>
{
let
t
=
e
.
getMode
(
l
,
"haskell"
);
return
e
.
multiplexingMode
(
t
,{
open
:
/:
(?=
!
)
/
,
close
:
/^
(?!
!
)
/
,
mode
:
e
.
getMode
(
l
,
"text/plain"
),
delimStyle
:
"delimit"
},{
open
:
/
\[
r
\|
|
\[
rprint
\|
|
\[
rgraph
\|
/
,
close
:
/
\|\]
/
,
mode
:
e
.
getMode
(
l
,
"text/x-rsrc"
),
delimStyle
:
"delimit"
})})),
e
.
defineMIME
(
"text/x-ihaskell"
,
"ihaskell"
),
e
.
modeInfo
.
push
({
ext
:[
"hs"
],
mime
:
"text/x-ihaskell"
,
mode
:
"ihaskell"
,
name
:
"ihaskell"
})}},
568
:(
e
,
l
,
t
)
=>
{
Object
.
defineProperty
(
l
,
"__esModule"
,{
value
:
!
0
});
const
i
=
t
(
36
),
o
=
t
(
291
),
s
=
{
id
:
"ihaskell"
,
autoStart
:
!
0
,
requires
:[
i
.
ICodeMirror
],
activate
:(
e
,
l
)
=>
{
o
.
defineIHaskellMode
(
l
)}};
l
.
default
=
s
}}]);
\ No newline at end of file
jupyterlab-ihaskell/labextension/static/remoteEntry.
5f537af78b2d9bc49249
.js
→
jupyterlab-ihaskell/labextension/static/remoteEntry.
f69020d92b044e1b4f22
.js
View file @
bf0a0f0d
This diff is collapsed.
Click to expand it.
jupyterlab-ihaskell/src/codemirror-ihaskell.ts
View file @
bf0a0f0d
// @ts-nocheck
// The types for CodeMirror don't accept a RegExp for 'open' and 'close'
import
{
ICodeMirror
,
Mode
}
from
'@jupyterlab/codemirror'
;
export
function
defineIHaskellMode
({
CodeMirror
}:
ICodeMirror
)
{
...
...
@@ -11,13 +8,17 @@ export function defineIHaskellMode({ CodeMirror }: ICodeMirror) {
return
CodeMirror
.
multiplexingMode
(
hmode
,
{
// @ts-ignore
open
:
/:
(?=
!
)
/
,
// Matches : followed by !, but doesn't consume !
// @ts-ignore
close
:
/^
(?!
!
)
/
,
// Matches start of line not followed by !, doesn't consume character
mode
:
CodeMirror
.
getMode
(
config
,
"text/plain"
),
delimStyle
:
"delimit"
},
{
// @ts-ignore
open
:
/
\[
r
\|
|
\[
rprint
\|
|
\[
rgraph
\|
/
,
// @ts-ignore
close
:
/
\|\]
/
,
mode
:
CodeMirror
.
getMode
(
config
,
"text/x-rsrc"
),
delimStyle
:
"delimit"
...
...
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