indentation-parser 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/indentation-parser.gemspec +1 -1
- data/lib/indentation-parser.rb +1 -2
- metadata +1 -1
data/indentation-parser.gemspec
CHANGED
data/lib/indentation-parser.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require "indentation-parser/version"
|
2
1
|
require "indentation-parser/node"
|
3
2
|
require "indentation-parser/hooks"
|
4
3
|
require "indentation-parser/handlers"
|
@@ -40,7 +39,7 @@ class IndentationParser
|
|
40
39
|
|
41
40
|
elsif new_node.indentation() - 1 > previous_node.indentation
|
42
41
|
#too large indentation -> raise an error
|
43
|
-
raise "
|
42
|
+
raise "Invalid indentation"
|
44
43
|
|
45
44
|
else
|
46
45
|
#indentation is less than previous node.
|