diff options
author | Pierre Fenoll <[email protected]> | 2013-09-10 15:48:29 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-09-12 15:09:35 +0200 |
commit | 21095e6830f37676dd29c33a590851ba2c76499b (patch) | |
tree | af67365890562885620703842def67331c1346fd /lib/compiler/src/core_scan.erl | |
parent | b15d3c7cc568abfb2c7cf48cd76f1d8d503b2736 (diff) | |
download | otp-21095e6830f37676dd29c33a590851ba2c76499b.tar.gz otp-21095e6830f37676dd29c33a590851ba2c76499b.tar.bz2 otp-21095e6830f37676dd29c33a590851ba2c76499b.zip |
Remove ^L characters hidden randomly in the code. Not those used in text files as delimiters.
While working on a tool that processes Erlang code and testing it against this repo,
I found out about those little sneaky 0xff. I thought it may be of help to other
people build such tools to remove non-conforming-to-standard characters.
Diffstat (limited to 'lib/compiler/src/core_scan.erl')
-rw-r--r-- | lib/compiler/src/core_scan.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/core_scan.erl b/lib/compiler/src/core_scan.erl index 0ca2f57dde..c0dfecd1dc 100644 --- a/lib/compiler/src/core_scan.erl +++ b/lib/compiler/src/core_scan.erl @@ -96,7 +96,7 @@ format_error(Other) -> io_lib:write(Other). string_thing($') -> "atom"; %' stupid emacs string_thing($") -> "string". %" stupid emacs - + %% Re-entrant pre-scanner. %% %% If the input list of characters is insufficient to build a term the @@ -214,7 +214,7 @@ pre_comment(eof, Sofar, Pos) -> pre_error(E, Epos, Pos) -> {error,{Epos,core_scan,E}, Pos}. - + %% scan(CharList, StartPos) %% This takes a list of characters and tries to tokenise them. %% |