Show grammar line numbers for regex errors

This commit is contained in:
josh committed 2025-07-25 21:27:20 -04:00
1 parent 25d6e3bc34
commit 5b243507cf
4 files changed
+46 -33

No files matched your search

+1 -1
View File
@@ -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