From b7def3a7cba259dbac74e37c8b3cf19a3d63122b Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Tue, 21 Apr 2009 14:49:51 -0700 Subject: 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. --- source/compiler/aslcompiler.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/compiler/aslcompiler.l') 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); } -- cgit v1.2.3