| 516 | | |
| 517 | | # check for .no-warnings. |
| 518 | | reMatch = _directiveRE.match(tok.text) |
| 519 | | if reMatch.success |
| 520 | | name = reMatch.groups[1].value |
| 521 | | branch name |
| 522 | | on 'no-warnings', .addNoWarning(tok) |
| 523 | | # for testify |
| 524 | | on 'args', pass # TODO: actually this could be worth implementing outside of testify |
| 525 | | on 'compile-only', pass |
| 526 | | on 'error', pass |
| 527 | | on 'multi', pass |
| 528 | | on 'multipart', pass |
| 529 | | on 'skip', pass |
| 530 | | on 'warning', pass |
| 531 | | else, .throwError('Unrecognized compiler directive "[name]".') |
| 532 | | |
| | 516 | .checkForCommentDirective(tok) |
| | 921 | ## Self util |
| | 922 | ## |
| | 923 | |
| | 924 | var _directiveRE = Regex(r'#\s?\.([\w\-]+)\.($|\s)', RegexOptions.Compiled) |
| | 925 | |
| | 926 | def checkForCommentDirective(tok as IToken) |
| | 927 | # check for .no-warnings. |
| | 928 | reMatch = _directiveRE.match(tok.text) |
| | 929 | if reMatch.success |
| | 930 | name = reMatch.groups[1].value |
| | 931 | branch name |
| | 932 | on 'no-warnings', .addNoWarning(tok) |
| | 933 | # for testify |
| | 934 | on 'args', pass # TODO: actually this could be worth implementing outside of testify |
| | 935 | on 'compile-only', pass |
| | 936 | on 'error', pass |
| | 937 | on 'multi', pass |
| | 938 | on 'multipart', pass |
| | 939 | on 'skip', pass |
| | 940 | on 'warning', pass |
| | 941 | else, .throwError('Unrecognized compiler directive "[name]".') |
| | 942 | |
| | 943 | |
| | 944 | ## |