X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=devtools%2Fcheck-forbidden-tokens.awk;h=026844141c8394afc09ccfae1d63de0b666497b4;hb=c3130c78e87864d5139d6672e48df807b1c0e2db;hp=61ba707c9bab085f5c35ee4d9e177101ddd56d72;hpb=cb2587644ee65c0956a66529644a5d001d920824;p=dpdk.git diff --git a/devtools/check-forbidden-tokens.awk b/devtools/check-forbidden-tokens.awk index 61ba707c9b..026844141c 100755 --- a/devtools/check-forbidden-tokens.awk +++ b/devtools/check-forbidden-tokens.awk @@ -20,6 +20,9 @@ BEGIN { # state machine assumes the comments structure is enforced by # checkpatches.pl (in_file) { + if ($0 ~ "^@@") { + in_comment = 0 + } # comment start if (index($0,comment_start) > 0) { in_comment = 1