Returns whether two refpage 'types' (categories) are compatible - this is only true for 'consts' and 'enums' types.
(refpage_type, pagemap_type)
| 398 | |
| 399 | |
| 400 | def compatiblePageTypes(refpage_type, pagemap_type): |
| 401 | """Returns whether two refpage 'types' (categories) are compatible - |
| 402 | this is only true for 'consts' and 'enums' types.""" |
| 403 | |
| 404 | constsEnums = [ 'consts', 'enums' ] |
| 405 | |
| 406 | if refpage_type == pagemap_type: |
| 407 | return True |
| 408 | if refpage_type in constsEnums and pagemap_type in constsEnums: |
| 409 | return True |
| 410 | return False |
| 411 | |
| 412 | # Patterns used to recognize interesting lines in an asciidoc source file. |
| 413 | # These patterns are only compiled once. |