lib/camelcase-ohm.js
function checkSemanticActionName(node) {
  var name = node.name;
  var underscoreIdx = name.indexOf('_');

  // The underscore should not appear on the ends,
  // case names should begin with a lowercase letter,
  // and there should be only one underscore in the name.
  if ((underscoreIdx > 0 && underscoreIdx < (name.length - 1)) &&
      name[underscoreIdx + 1] === name[underscoreIdx + 1].toLowerCase() &&
      name.indexOf('_', underscoreIdx + 1) === -1) {
    return true;
  }
  return false;
}
function checkSemanticActionName(node) {
  var name = node.name;
  var underscoreIdx = name.indexOf('_');

  // The underscore should not appear on the ends,
  // case names should begin with a lowercase letter,
  // and there should be only one underscore in the name.
  if ((underscoreIdx > 0 && underscoreIdx < (name.length - 1)) &&
      name[underscoreIdx + 1] === name[underscoreIdx + 1].toLowerCase() &&
      name.indexOf('_', underscoreIdx + 1) === -1) {
    return true;
  }
  return false;
}
function checkSemanticActionName ( node ) { var name = node . name ; var underscoreIdx = name . indexOf ( '_' ) ; // The underscore should not appear on the ends, // case names should begin with a lowercase letter, // and there should be only one underscore in the name. if ( ( underscoreIdx > 0 && underscoreIdx < ( name . length - 1 ) ) && name [ underscoreIdx + 1 ] === name [ underscoreIdx + 1 ] . toLowerCase ( ) && name . indexOf ( '_' , underscoreIdx + 1 ) === - 1 ) { return true ; } return false ; }
Returns true if `name` appears to be the name of a semantic action. The idiomatic style in Ohm is `RuleName_caseName`.
Returns true if name appears to be the name of a semantic action . The idiomatic style in Ohm is RuleName_caseName .