diff options
author | Robert Moore <Robert.Moore@intel.com> | 2009-04-21 14:49:51 -0700 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2009-04-21 14:49:51 -0700 |
commit | b7def3a7cba259dbac74e37c8b3cf19a3d63122b (patch) | |
tree | 69c347f5e8a90cd0b1889a189ff590f4a3c4eedc /source/compiler/aslcompiler.l | |
parent | 32b66e9626a72140c6752c02b2ad6888a4f9f9e1 (diff) |
iASL: Fix for line-terminator transparency.
Ensure that iASL works correctly with both LF and CR/LF terminated files,
on both unix-like and windows platforms.
Diffstat (limited to 'source/compiler/aslcompiler.l')
-rw-r--r-- | source/compiler/aslcompiler.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/compiler/aslcompiler.l b/source/compiler/aslcompiler.l index 6337eaa6c..3a52348c4 100644 --- a/source/compiler/aslcompiler.l +++ b/source/compiler/aslcompiler.l @@ -168,7 +168,8 @@ NamePathTail [.]{NameSeg} %% [ ] { count (0); } -[\n] { count (0); } +[\n] { count (0); } /* Handle files with both LF and CR/LF */ +[\r] { count (0); } /* termination on both Unix and Windows */ [ \t] { count (0); } |