You are here

function coder_postprocessor_cvs_id in Coder 5.2

Same name and namespace in other branches
  1. 5 scripts/coder_format/coder_format.inc \coder_postprocessor_cvs_id()
  2. 6.2 scripts/coder_format/coder_format.inc \coder_postprocessor_cvs_id()
  3. 6 scripts/coder_format/coder_format.inc \coder_postprocessor_cvs_id()
  4. 7.2 scripts/coder_format/coder_format.inc \coder_postprocessor_cvs_id()
  5. 7 scripts/coder_format/coder_format.inc \coder_postprocessor_cvs_id()

Related topics

File

scripts/coder_format/coder_format.inc, line 1213

Code

function coder_postprocessor_cvs_id() {
  return array(
    '#title' => 'If the CVS keyword Id already exists, append a new line after it.',
    '#search' => '@
      ^(          # match start of a line
        //.*      # match an inline comment followed by any characters
        \\$Id.*\\$  # match a CVS Id tag
      )$          # match end of a line
      @mx',
    '#replace' => "\$1\n",
  );
}