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
c13b973a
Commit
c13b973a
authored
Oct 18, 2019
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IHaskell.Eval.Lint: escape $
parent
f48eeee9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Lint.hs
src/IHaskell/Eval/Lint.hs
+3
-2
acceptance.nbconvert.in.ipynb
test/acceptance.nbconvert.in.ipynb
+3
-3
No files found.
src/IHaskell/Eval/Lint.hs
View file @
c13b973a
...
...
@@ -212,12 +212,13 @@ htmlSuggestions = concatMap toHtml
[
named
$
suggestion
suggest
,
floating
"left"
$
styl
severityClass
"Found:"
++
-- Things that look like this get highlighted.
styleId
"highlight-code"
"haskell"
(
found
suggest
)
styleId
"highlight-code"
"haskell"
(
escapeDollar
$
found
suggest
)
,
floating
"left"
$
styl
severityClass
"Why Not:"
++
-- Things that look like this get highlighted.
styleId
"highlight-code"
"haskell"
(
whyNot
suggest
)
styleId
"highlight-code"
"haskell"
(
escapeDollar
$
whyNot
suggest
)
]
where
escapeDollar
=
replace
"$"
"
\\
$"
severityClass
=
case
severity
suggest
of
Error
->
"error"
...
...
test/acceptance.nbconvert.in.ipynb
View file @
c13b973a
...
...
@@ -894,14 +894,14 @@
".suggestion-name {\n",
"font-weight: bold;\n",
"}\n",
"</style><div class=\"suggestion-name\" style=\"clear:both;\">Redundant $</div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Found:</div><div class=\"highlight-code\" id=\"haskell\">f $ 3</div></div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Why Not:</div><div class=\"highlight-code\" id=\"haskell\">f 3</div></div><div class=\"suggestion-name\" style=\"clear:both;\">Redundant do</div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Found:</div><div class=\"highlight-code\" id=\"haskell\">do return 3</div></div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Why Not:</div><div class=\"highlight-code\" id=\"haskell\">return 3</div></div>"
"</style><div class=\"suggestion-name\" style=\"clear:both;\">Redundant $</div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Found:</div><div class=\"highlight-code\" id=\"haskell\">f
\\
$ 3</div></div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Why Not:</div><div class=\"highlight-code\" id=\"haskell\">f 3</div></div><div class=\"suggestion-name\" style=\"clear:both;\">Redundant do</div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Found:</div><div class=\"highlight-code\" id=\"haskell\">do return 3</div></div><div class=\"suggestion-row\" style=\"float: left;\"><div class=\"suggestion-warning\">Why Not:</div><div class=\"highlight-code\" id=\"haskell\">return 3</div></div>"
],
"text/plain": [
"Line
1
: Redundant $\n",
"Line
7
: Redundant $\n",
"Found:\n",
"f $ 3\n",
"Why not:\n",
"f 3Line
1
: Redundant do\n",
"f 3Line
9
: Redundant do\n",
"Found:\n",
"do return 3\n",
"Why not:\n",
...
...
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