Skip to content

Commit

Permalink
Merge pull request #4597 from dkeehl/dkeehl-lexer-fix
Browse files Browse the repository at this point in the history
fix octal digits lexer
  • Loading branch information
melted committed Dec 3, 2018
2 parents 595cfb4 + 606ae61 commit d063e6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/contrib/Text/Lexer.idr
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ hexDigits : Lexer
hexDigits = some hexDigit

||| Recognise a single octal digit
||| /[0-8]/
||| /[0-7]/
octDigit : Lexer
octDigit = pred isHexDigit
octDigit = pred isOctDigit

||| Recognise one or more octal digits
||| /[0-8]+/
||| /[0-7]+/
octDigits : Lexer
octDigits = some hexDigit
octDigits = some octDigit

||| Recognise a single alpha character
||| /[A-Za-z]/
Expand Down

0 comments on commit d063e6a

Please sign in to comment.