-
- Downloads
New implementation for highlighting diff files. #3945
* It is more performant given now we process all the diff file instead of processing line by line. * Multiline comments are highlighted correctly.
Showing
- app/helpers/application_helper.rb 0 additions, 6 deletionsapp/helpers/application_helper.rb
- app/helpers/blob_helper.rb 0 additions, 15 deletionsapp/helpers/blob_helper.rb
- app/helpers/diff_helper.rb 3 additions, 3 deletionsapp/helpers/diff_helper.rb
- app/views/projects/diffs/_parallel_view.html.haml 2 additions, 4 deletionsapp/views/projects/diffs/_parallel_view.html.haml
- app/views/projects/diffs/_text_file.html.haml 2 additions, 3 deletionsapp/views/projects/diffs/_text_file.html.haml
- lib/gitlab/diff/file.rb 4 additions, 0 deletionslib/gitlab/diff/file.rb
- lib/gitlab/diff/highlight.rb 55 additions, 0 deletionslib/gitlab/diff/highlight.rb
- lib/gitlab/diff/line.rb 1 addition, 0 deletionslib/gitlab/diff/line.rb
- lib/rouge/lexers/gitlab_diff.rb 1 addition, 1 deletionlib/rouge/lexers/gitlab_diff.rb
- spec/helpers/blob_helper_spec.rb 0 additions, 11 deletionsspec/helpers/blob_helper_spec.rb
lib/gitlab/diff/highlight.rb
0 → 100644
Please register or sign in to comment