]> thyrsus.com Git - comparator.git/commitdiff
Fix filtering bug.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2003 16:51:55 +0000 (16:51 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2003 16:51:55 +0000 (16:51 +0000)
comparator.py

index e7e5c873b7a3250802e6c1d940af1ff2c67896c2..378a45e9a0fda177632b660543b4f8be4fd90abd 100644 (file)
@@ -7,13 +7,15 @@ junk = {
         r"return *\(?[a-z]+\)? *;", r"return *\(?-?[01]+\)? *;",
         r"goto +[a-z]+;", r"exit *\([01]\);",
         # Pragmas
-        r'/\* *ARGSUSED *\*/', r'/\* *NOTREACHED *\*/', 
+        r'/\* *ARGSUSED *\*/',
+        r'/\* *NOTREACHED *\*/', 
+        r'/\* *FALL *THRO?UG?H? *\*/',
         # Bare C keywords
         r'\bbreak\b',  r'\bcase\b',r'\bcontinue\b', r'\bdefault\b',
         r'\bdo\b', r'\belse\b', r'\benum\b', r'\bif\b', r'\bgoto\b',
         r'\breturn\b', r'\bswitch\b', r'\bwhile\b',
         r'enum', r'\bint\b', r'\blong\b', r'\bshort\b', r'\bstatic\b',
-        r'\bstruct\b', r'typedef', r'\bunion\b', r'\bvoid\b',
+        r'\bstruct\b', r'\btypedef\b', r'\bunion\b', r'\bvoid\b',
         r'# *define',r'# *endif',r'# *else',r'# *if\b',
         r'# *ifdef\b',r'# *ifndef\b',
         # Comment delimiters with no content