From cb2d79a1e3f6a50d8c527dd36fb045e6a5711bf1 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sun, 24 May 2015 15:55:24 +0200 Subject: [PATCH] get some fresh air --- lib/command.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/command.coffee b/lib/command.coffee index 1839086..115b273 100644 --- a/lib/command.coffee +++ b/lib/command.coffee @@ -52,13 +52,16 @@ class Command # Command line parsing (mostly) following the rules at # http://pubs.opengroup.org/onlinepubs/9699919799/utilities # /ex.html#tag_20_40_13_03 + # Steps 1/2: Leading blanks and colons are ignored. cl = input.characters cl = cl.replace(/^(:|\s)*/, '') return unless cl.length > 0 + # Step 3: If the first character is a ", ignore the rest of the line if cl[0] is '"' return + # Step 4: Address parsing lastLine = @editor.getBuffer().lines.length - 1 if cl[0] is '%'