diff options
author | Rubén Dávila <Ruben@GitLab.com> | 2015-12-23 19:10:13 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2015-12-28 18:31:27 -0500 |
commit | c031b9d9cd1ea41ab68f46eb5e630efaf901933a (patch) | |
tree | 5e99b2b786daf4827c4ff59ef8572cbc6d3f16e5 /lib | |
parent | 34657b821ae597de76ffd5a70d2b0b298dc270ed (diff) | |
download | gitlab-ce-c031b9d9cd1ea41ab68f46eb5e630efaf901933a.tar.gz |
Set initial state on parent Lexer. #3945
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rouge/lexers/gitlab_diff.rb | 4 |
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 |