summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <Ruben@GitLab.com>2015-12-23 19:10:13 -0500
committerRubén Dávila <rdavila84@gmail.com>2015-12-28 18:31:27 -0500
commitc031b9d9cd1ea41ab68f46eb5e630efaf901933a (patch)
tree5e99b2b786daf4827c4ff59ef8572cbc6d3f16e5
parent34657b821ae597de76ffd5a70d2b0b298dc270ed (diff)
downloadgitlab-ce-c031b9d9cd1ea41ab68f46eb5e630efaf901933a.tar.gz
Set initial state on parent Lexer. #3945
-rw-r--r--lib/rouge/lexers/gitlab_diff.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rouge/lexers/gitlab_diff.rb b/lib/rouge/lexers/gitlab_diff.rb
index e136d47df00..c7aaeb92608 100644
--- a/lib/rouge/lexers/gitlab_diff.rb
+++ b/lib/rouge/lexers/gitlab_diff.rb
@@ -15,6 +15,10 @@ module Rouge
delegate option(:parent_lexer)
end
end
+
+ start do
+ option(:parent_lexer).reset!
+ end
end
end
end