Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
c2fe7d87
Commit
c2fe7d87
authored
Apr 16, 2007
by
Simon Marlow
Browse files
tab, verttab, formfeed, and CR are not allowed in strings
See #1277
parent
2b37fb7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/Ctype.lhs
View file @
c2fe7d87
...
...
@@ -91,11 +91,11 @@ charType c = case c of
'\6' -> 0 -- \006
'\7' -> 0 -- \007
'\8' -> 0 -- \010
'\9' -> c
Any + cSpace
-- \t
'\10' -> cSpace -- \n
(not allowed in strings, so !cAny
)
'\11' -> c
Any + c
Space -- \v
'\12' -> c
Any + c
Space -- \f
'\13' ->
cAny +
cSpace -- ^M
'\9' -> c
Space
-- \t
(not allowed in strings, so !cAny)
'\10' -> cSpace -- \n
(ditto
)
'\11' -> cSpace
-- \v
(ditto)
'\12' -> cSpace
-- \f
(ditto)
'\13' -> cSpace
-- ^M
(ditto)
'\14' -> 0 -- \016
'\15' -> 0 -- \017
'\16' -> 0 -- \020
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment