-
Notifications
You must be signed in to change notification settings - Fork 100
Add missing parentheses around identifier 'let*' #1268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5145aad
Include Astring in Odoc_utils
Julow 0677e3f
Add failing test for parenthezation of 'let*'
Julow 20010b2
Add missing parentheses around identifier 'let*'
Julow 7a8994c
Update CHANGES
Julow 45d36eb
Add missing parentheses around ( or )
Julow bf67fa4
4.02 compat
Julow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
(library | ||
(name ocamlary) | ||
(public_name odoc.ocamlary) | ||
(enabled_if | ||
(>= %{ocaml_version} 4.14.0)) | ||
(virtual_modules ocamlary)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
open Astring | ||
open Odoc_model | ||
open Odoc_model.Names | ||
open Or_error | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(library | ||
(name odoc_utils) | ||
(public_name odoc.odoc_utils) | ||
(libraries result)) | ||
(libraries result astring)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,3 +78,5 @@ end | |
module Tree = Tree | ||
module Forest = Tree.Forest | ||
module Json = Json | ||
|
||
include Astring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head><title>Op (Ocamlary.Op)</title><meta charset="utf-8"/> | ||
<link rel="stylesheet" href="odoc.css"/> | ||
<meta name="generator" content="odoc %%VERSION%%"/> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"/> | ||
<script src="highlight.pack.js"></script> | ||
<script>hljs.initHighlightingOnLoad();</script> | ||
</head> | ||
<body class="odoc"> | ||
<nav class="odoc-nav"><a href="Ocamlary.html">Up</a> – | ||
<a href="index.html">🏠</a> » | ||
<a href="Ocamlary.html">Ocamlary</a> » Op | ||
</nav> | ||
<header class="odoc-preamble"> | ||
<h1>Module <code><span>Ocamlary.Op</span></code></h1> | ||
</header> | ||
<div class="odoc-content"> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(let*)"> | ||
<a href="#val-(let*)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (let*) : int</span></code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(and*)"> | ||
<a href="#val-(and*)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (and*) : int</span></code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(.%{})"> | ||
<a href="#val-(.%{})" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (.%{}) : int</span></code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(.%{}<-)"> | ||
<a href="#val-(.%{}<-)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (.%{}<-) : int</span> | ||
</code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(.%{;..})"> | ||
<a href="#val-(.%{;..})" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (.%{;..}) : int</span> | ||
</code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(.%{;..}<-)"> | ||
<a href="#val-(.%{;..}<-)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (.%{;..}<-) : int</span> | ||
</code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(!~)"> | ||
<a href="#val-(!~)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (!~) : int</span></code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(#~)"> | ||
<a href="#val-(#~)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (#~) : int</span></code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(or)"> | ||
<a href="#val-(or)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (or) : int</span></code> | ||
</div> | ||
</div> | ||
<div class="odoc-spec"> | ||
<div class="spec value anchored" id="val-(lsl)"> | ||
<a href="#val-(lsl)" class="anchor"></a> | ||
<code><span><span class="keyword">val</span> (lsl) : int</span></code> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to do
"( " ^ name ^ " )"
because of the ambiguous(*)
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point!
Changing this code would change URLs, which is not fine. More work is needed to handle that in the generated code only. It's in
src/document/generator.ml
if you have some time to work on it.