gecko-dev/parser/htmlparser
L. David Baron 1e88f0f003 Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert
This patch was written entirely by the following script:

  #!/bin/bash

  if [ ! -d "./.hg" ]
  then
    echo "Not in a source tree." 1>&2
    exit 1
  fi

  find . -regex '.*\(ref\|crash\)test.*\.list' | while read FILENAME
  do
    echo "Processing ${FILENAME}."
    # The following has four substitutions:
    # * The first one replaces the *first* argument to fuzzy() when it doesn't
    #   have a - in it, by replacing it with an explicit 0-N range.
    # * The second one does the same for the *second* argument to fuzzy().
    # * The third does the same for the *second* argument to fuzzy-if().
    # * The fourth does the same for the *third* argument to fuzzy-if().
    #
    # Note that this is using perl rather than sed because perl doesn't
    # support non-greedy matching, which is needed for the first argument to
    # fuzzy-if.
    perl -pi -e 's/(fuzzy\()([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy\([^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,)([^ ,()-]*)(,[^ ,()]*\))/${1}0-${2}${3}/g;s/(fuzzy-if\([^ ]*?,[^ ,()]*,)([^ ,()-]*)(\))/${1}0-${2}${3}/g' "${FILENAME}"
  done

Differential Revision: https://phabricator.services.mozilla.com/D2974

--HG--
extra : moz-landing-system : lando
2018-08-09 20:10:21 +00:00
..
tests Bug 1369941: Replace single integers N in fuzzy() and fuzzy-if() with 0-N ranges. r=dholbert 2018-08-09 20:10:21 +00:00
CNavDTD.cpp
CNavDTD.h
CParserContext.cpp Bug 1453795 - Parser/HTML Parser - Initialize member fields in classes/ structures. r=mrbkap 2018-06-14 00:08:27 +03:00
CParserContext.h
moz.build Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium 2017-12-07 22:09:15 +01:00
nsElementTable.cpp Bug 1445983. <bdi> should be an HTMLElement, not HTMLUnknownElement. r=hsivonen 2018-03-16 11:26:09 -04:00
nsElementTable.h Bug 1400777 (part 5) - Clean up nsElementTable.{cpp,h}. r=mrbkap. 2017-09-20 08:32:51 +10:00
nsExpatDriver.cpp Bug 1476306 - Moving NullPrincipal/ContentPrincipal/SystemPrincipal under mozilla namespace - part 1 - NullPrincipal, r=ckerschb 2018-07-17 21:37:48 +02:00
nsExpatDriver.h Bug 1416980 - Remove nsIExtendedExpatSink. r=erahm. 2017-11-14 17:22:49 +11:00
nsHTMLTagList.h Bug 1445983. <bdi> should be an HTMLElement, not HTMLUnknownElement. r=hsivonen 2018-03-16 11:26:09 -04:00
nsHTMLTags.cpp Bug 1449395 - Remove unnecessary nsStaticAtom.h includes. r=froydnj 2018-03-29 09:08:54 +11:00
nsHTMLTags.h Bug 1449395 - Remove unnecessary nsStaticAtom.h includes. r=froydnj 2018-03-29 09:08:54 +11:00
nsHTMLTokenizer.cpp
nsHTMLTokenizer.h
nsIContentSink.h
nsIDTD.h
nsIExpatSink.idl Bug 1418246 - Return valid columnNumber value in CSP violation events, r=ckerschb 2018-07-05 08:21:04 +02:00
nsIFragmentContentSink.h Bug 1452183 part 1. Stop using nsIDOMDocumentFragment in IDL files. r=mccr8 2018-04-17 21:13:03 -04:00
nsIHTMLContentSink.h
nsIParser.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsITokenizer.h
nsParser.cpp Bug 1453795 - Parser/HTML Parser - Initialize member fields in classes/ structures. r=mrbkap 2018-06-14 00:08:27 +03:00
nsParser.h
nsParserBase.h
nsParserCIID.h Bug 1402769 - Remove unused stuff in and around nsParserModule.cpp. r=mrbkap. 2017-09-05 20:43:30 +10:00
nsParserConstants.h
nsParserModule.cpp Bug 1402769 - Remove unused stuff in and around nsParserModule.cpp. r=mrbkap. 2017-09-05 20:43:30 +10:00
nsParserMsgUtils.cpp
nsParserMsgUtils.h
nsScanner.cpp
nsScanner.h
nsScannerString.cpp
nsScannerString.h Bug 1453795 - Parser/HTML Parser - Initialize member fields in classes/ structures. r=mrbkap 2018-06-14 00:08:27 +03:00