highlight the @ in dim apps as a delim
This commit is contained in:
parent
d9cdf1306d
commit
04af7ae942
2 changed files with 3 additions and 3 deletions
|
@ -249,7 +249,7 @@ prettyDBind = hl DVar . prettyBind'
|
||||||
|
|
||||||
export %inline
|
export %inline
|
||||||
typeD, ioStateD, arrowD, darrowD, timesD, lamD, eqndD, dlamD, annD, natD,
|
typeD, ioStateD, arrowD, darrowD, timesD, lamD, eqndD, dlamD, annD, natD,
|
||||||
stringD, eqD, colonD, commaD, semiD, caseD, typecaseD, returnD,
|
stringD, eqD, colonD, commaD, semiD, atD, caseD, typecaseD, returnD,
|
||||||
ofD, dotD, zeroD, succD, coeD, compD, undD, cstD, pipeD, fstD, sndD :
|
ofD, dotD, zeroD, succD, coeD, compD, undD, cstD, pipeD, fstD, sndD :
|
||||||
{opts : LayoutOpts} -> Eff Pretty (Doc opts)
|
{opts : LayoutOpts} -> Eff Pretty (Doc opts)
|
||||||
typeD = hl Syntax . text =<< ifUnicode "★" "Type"
|
typeD = hl Syntax . text =<< ifUnicode "★" "Type"
|
||||||
|
@ -267,6 +267,7 @@ eqD = hl Syntax $ text "Eq"
|
||||||
colonD = hl Delim $ text ":"
|
colonD = hl Delim $ text ":"
|
||||||
commaD = hl Delim $ text ","
|
commaD = hl Delim $ text ","
|
||||||
semiD = hl Delim $ text ";"
|
semiD = hl Delim $ text ";"
|
||||||
|
atD = hl Delim $ text "@"
|
||||||
caseD = hl Syntax $ text "case"
|
caseD = hl Syntax $ text "case"
|
||||||
typecaseD = hl Syntax $ text "type-case"
|
typecaseD = hl Syntax $ text "type-case"
|
||||||
ofD = hl Syntax $ text "of"
|
ofD = hl Syntax $ text "of"
|
||||||
|
|
|
@ -201,8 +201,7 @@ prettyTArg dnames tnames s =
|
||||||
|
|
||||||
private
|
private
|
||||||
prettyDArg : {opts : _} -> BContext d -> Dim d -> Eff Pretty (Doc opts)
|
prettyDArg : {opts : _} -> BContext d -> Dim d -> Eff Pretty (Doc opts)
|
||||||
prettyDArg dnames p =
|
prettyDArg dnames p = [|atD <+> withPrec Arg (prettyDim dnames p)|]
|
||||||
map (text "@" <+>) $ withPrec Arg $ prettyDim dnames p
|
|
||||||
|
|
||||||
private
|
private
|
||||||
splitApps : Elim d n -> (Elim d n, List (Either (Dim d) (Term d n)))
|
splitApps : Elim d n -> (Elim d n, List (Either (Dim d) (Term d n)))
|
||||||
|
|
Loading…
Reference in a new issue