Skip to content

Commit 98eaa39

Browse files
committed
Merge pull request purescript#567 from joneshf/master
Escape any operators characters in objects.
2 parents 0239693 + f9de125 commit 98eaa39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/PureScript/Pretty/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ prettyPrintMany f xs = do
6565
--
6666
prettyPrintObjectKey :: String -> String
6767
prettyPrintObjectKey s | s `elem` reservedPsNames = show s
68-
| head s `elem` opChars = show s
68+
| any (`elem` opChars) s = show s
6969
| otherwise = s

0 commit comments

Comments
 (0)