From: nobu.nokada@... Date: 2005-05-13T00:35:55+09:00 Subject: Re: Encoding Pragma Hi, At Fri, 13 May 2005 00:01:46 +0900, Yukihiro Matsumoto wrote in [ruby-core:04901]: > |> Python pragma should appear in the first 2 lines at the top of the > |> file[1]. I think Python's rule is more appropriate. > | > |Encodings certainly shouldn't change within a file. But any > |pragmas can't appear in the middle? > > Encoding pragma in the middle of the file should be just ignored, I > guess. I'm wondering how "at the top" can be detect. ruby_sourceline is defined differently between parse.y and ripper. -- Nobu Nakada