emancu/toml-rb

View on GitHub
lib/toml-rb/grammars/helper.citrus

Summary

Maintainability
Test Coverage
grammar TomlRB::Helper
  rule comment
    (space? "#" (~line_break)* line_break?) { nil }
  end

  rule space
    [ \t]*
  end

  rule indent
    [ \t\r\n]*
  end

  rule line_break
    (space "\n" space | space "\r\n" space) { nil }
  end
end