Skip to content

Commit

Permalink
Merge pull request #182 from julia-vscode/quote-docs
Browse files Browse the repository at this point in the history
allow documenter symbols within quoted blocks
  • Loading branch information
davidanthoff authored Jun 7, 2020
2 parents 1343f16 + 6af1be2 commit 30159d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ convertsigtotuple(sig::EXPR) = isbracketed(sig) && !(istuple(sig.args[2]) || (ty
When parsing a block of expressions, can documentation be attached? Prefixed docs at the
top-level are handled within `parse(ps::ParseState, cont = false)`.
"""
docable(head) = head === Begin || head === ModuleH || head === BareModule
docable(head) = head === Begin || head === ModuleH || head === BareModule || head === Quote


should_negate_number_literal(ps::ParseState, op::EXPR) = (is_plus(op) || is_minus(op)) && (kindof(ps.nt) === Tokens.INTEGER || kindof(ps.nt) === Tokens.FLOAT) && isemptyws(ps.ws) && kindof(ps.nnt) != Tokens.CIRCUMFLEX_ACCENT
Expand Down

0 comments on commit 30159d7

Please # to comment.