You are here

function coder_postprocessor_cvs_id in Coder 7

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

Related topics

File

scripts/coder_format/coder_format.inc, line 1227
Coder format helper functions.

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",
  );
}