Skip to content

Commit

Permalink
Merge branch 'PyConsts' of github.com:JacquesCarette/Drasil into PyCo…
Browse files Browse the repository at this point in the history
…nsts
  • Loading branch information
B-rando1 committed Jul 19, 2024
2 parents 524be4e + 77bbe0a commit 098c8d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ pyDocComment (l:lns) start mid = vcat $ start <+> text l : map ((<+>) mid .

toConstName :: String -> String
toConstName (s:s':ss) = if isLower s && isUpper s'
then toUpper s : '_' : toUpper s' : toConstName ss
then toUpper s : '_' : s' : toConstName ss
else toUpper s : toConstName (s' : ss)
toConstName (s:ss) = toUpper s : toConstName ss
toConstName "" = ""

0 comments on commit 098c8d8

Please sign in to comment.