[python] Support comment based CPD suppressions

This commit is contained in:
Juan Martín Sotuyo Dodero
2018-04-21 20:33:30 -03:00
parent 539773eb5b
commit fc2e0a625f
3 changed files with 31 additions and 7 deletions
+5 -1
View File
@@ -33,7 +33,11 @@ SKIP :
| "\014"
| <CONTINUATION: ("\\") ("\r\n"|"\n"|"\r")>
| <NEWLINE: ("\r\n"|"\n"|"\r")>
| <TRAILING_COMMENT: "#" (~["\n","\r"])* >
}
SPECIAL_TOKEN :
{
<TRAILING_COMMENT: "#" (~["\n","\r"])* >
}
TOKEN : /* SEPARATORS */