No longer allow slashes in extended names, they are now stripped
authorChristiaan Baaij <christiaan.baaij@gmail.com>
Tue, 18 Aug 2009 12:54:09 +0000 (14:54 +0200)
committerChristiaan Baaij <christiaan.baaij@gmail.com>
Tue, 18 Aug 2009 12:54:09 +0000 (14:54 +0200)
cλash/CLasH/VHDL/VHDLTools.hs

index fedd8f528a764ea49ba4404fabdaaafb000e9a11..e273da8bd3a9f26512389ea468cda228d2adcac8 100644 (file)
@@ -239,7 +239,7 @@ mkVHDLExtId s =
   AST.unsafeVHDLExtId $ strip_invalid s
   where 
     -- Allowed characters, taken from ForSyde's mkVHDLExtId
-    allowed = ['A'..'Z'] ++ ['a'..'z'] ++ ['0'..'9'] ++ " \"#&\\'()*+,./:;<=>_|!$%@?[]^`{}~-"
+    allowed = ['A'..'Z'] ++ ['a'..'z'] ++ ['0'..'9'] ++ " \"#&'()*+,./:;<=>_|!$%@?[]^`{}~-"
     strip_invalid = filter (`elem` allowed)
 
 -- Create a record field selector that selects the given label from the record