Show grammar line numbers for regex errors
This commit is contained in:
1 parent
25d6e3bc34
commit
5b243507cf
4 files changed
+46
-33
No files matched your search
@@ -55,7 +55,7 @@ class Propane
|
||||
@line_number = options[:line_number]
|
||||
@modes = options[:modes]
|
||||
@ptypename = options[:ptypename]
|
||||
regex = Regex.new(@pattern)
|
||||
regex = Regex.new(@pattern, @line_number)
|
||||
regex.nfa.end_state.accepts = self
|
||||
@nfa = regex.nfa
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user