summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de91b48)
raw | patch | inline | side by side (parent: de91b48)
author | mental <mental@users.sourceforge.net> | |
Sat, 12 Aug 2006 15:34:39 +0000 (15:34 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sat, 12 Aug 2006 15:34:39 +0000 (15:34 +0000) |
share/extensions/simplepath.rb | patch | blob | history |
index 466a75d10faf6df068c4a0a103acf9c5fe77e002..3d9b7b372142f823d406cb25db5a487d9475f16c 100755 (executable)
lastCommand = nil
lexPath(d) do |token, isCommand|
- if command
- raise 'Invalid number of parameters' if isCommand
- else
+ raise 'Invalid number of parameters' if command and isCommand
+
+ unless command
if isCommand
raise 'Invalid path, must begin with moveto.' \
unless lastCommand or token.upcase == 'M'