Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactoring comment_pattern to single line

  • Loading branch information...
commit 7aa2ea60b314e06e4fc1f364c76dcdc037b120fd 1 parent 29a55d0
Kurtis Rainbolt-Greene authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/rocco.rb
View
3  lib/rocco.rb
@@ -116,8 +116,7 @@ def initialize(filename, sources=[], options={})
# Turn `:comment_chars` into a regex matching a series of spaces, the
# `:comment_chars` string, and the an optional space. We'll use that
# to detect single-line comments.
- @comment_pattern =
- Regexp.new("^\\s*#{@options[:comment_chars][:single]}\s?")
+ @comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars][:single]}\s?")
# `parse()` the file contents stored in `@data`. Run the result through
# `split()` and that result through `highlight()` to generate the final
Please sign in to comment.
Something went wrong with that request. Please try again.