Skip to content

Lua scanner, tweaked (finally!) #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jun 22, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more helpful error messages from DebugLint
  • Loading branch information
korny committed Jun 22, 2013
commit fbaf55d69c20897655c80e9723973e2f9490484d
4 changes: 2 additions & 2 deletions lib/coderay/encoders/debug_lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def begin_group kind
end

def end_group kind
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind}" if @opened.pop != kind
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind} (end_group)" if @opened.pop != kind
super
end

Expand All @@ -45,7 +45,7 @@ def begin_line kind
end

def end_line kind
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind}" if @opened.pop != kind
raise IncorrectTokenGroupNesting, "We are inside #{@opened.inspect}, not #{kind} (end_line)" if @opened.pop != kind
super
end

Expand Down