Overview
Comment: | add new comment extraction rx |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3ad4b252ac653966fec058479c231b01 |
User & Date: | mario on 2022-11-01 16:57:44 |
Other Links: | manifest | tags |
Context
2022-11-01
| ||
18:50 | move name_to_fn and get_readme into MetaUtils check-in: 63fdedee18 user: mario tags: trunk | |
16:57 | add new comment extraction rx check-in: 3ad4b252ac user: mario tags: trunk | |
2022-10-31
| ||
18:56 | add pacakge disovery, and additional comment styles (different languages) check-in: f03780244f user: mario tags: trunk | |
Changes
Modified pluginconf/__init__.py from [97ed648af8] to [7148596eca].
︙ | |||
364 365 366 367 368 369 370 | 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 | - - + + | src = src.replace("\r", "") if not literal: src = rx.header.sub("", src) src = rx.comment.search(src) if not src: log.warning("Couldn't read source meta information: %s", filename) return meta |
︙ | |||
469 470 471 472 473 474 475 | 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 | - + - - - - + + + + - - + + - + + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + | Pretty crude comment splitting approach. But works well enough already. Technically a YAML parser would do better; but is likely overkill. """ header = re.compile(r""" (\A ( |
︙ |
Modified test/config_altsyntax.py from [28af7a5552] to [4cae691114].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - + - + - - + + + + + + + + + + + + + + + + + + + + + + | assert _parse(c_style).doc == "Do we get a comment?" def multiline_ps1(): ps1_style= """ <# # api: cpp # title: second |
Added test/config_hashdet.py version [a32557b6af].
|