[gnome-code-assistance] [backends/css] Do not try to fix for ending newline



commit ff29d820bffe197c564716e3e17984b039fa2764
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Wed Nov 13 21:03:15 2013 +0100

    [backends/css] Do not try to fix for ending newline

 backends/css/app.rb |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/backends/css/app.rb b/backends/css/app.rb
index 3404fec..924ac9c 100644
--- a/backends/css/app.rb
+++ b/backends/css/app.rb
@@ -28,16 +28,7 @@ end
 class CssParser < Sass::SCSS::CssParser
     def self.expected(scanner, expected, line)
         pos = scanner.pos
-        eos = scanner.eos?
-
-        if eos
-            pos -= 1
-            line -= 1
-
-            nlpos = scanner.string.rindex("\n", pos - 1)
-        else
-            nlpos = scanner.string.rindex("\n", pos)
-        end
+        nlpos = scanner.string.rindex("\n", pos)
 
         begin
             super(scanner, expected, line)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]