summaryrefslogtreecommitdiff
path: root/giscanner/sectionparser.py
Commit message (Collapse)AuthorAgeFilesLines
* Add the notion of standalone doc sections.Mathieu Duponchelle2020-07-121-0/+2
| | | | | | | | Up to now, section annotations had to match a class or interface name in order to be serialized in the gir. With this commit, they now get serialized as docsection nodes, for potential use by documentation tools.
* Drop all Python 2 compat codeChristoph Reiter2018-12-081-5/+0
| | | | We only support 3.4+ now.
* giscanner: Use unicode literals in all Python filesSimon Feltman2015-09-291-0/+1
| | | | | | | | | | | | Add unicode_literals future import which turns any string literal into a unicode string. Return unicode strings from the Python C extension module. Force writing of annotations (g-ir-annotation-tool) to output utf8 encoded data to stdout. This is an initial pass at following the "unicode sandwich" model of programming (http://nedbatchelder.com/text/unipain.html) needed for supporting Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use print as a function for Python 3 compatibilitySimon Feltman2015-09-291-0/+1
| | | | | | | Use future import "print_function" and update relevant uses of print as a function call. See: PEP 3105 https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Enable "true division" for all Python filesSimon Feltman2015-09-291-0/+1
| | | | | | | | | | Import Python 3 compatible "true division" from the future (PEP 238). This changes the Python 2 classic division which uses floor division on integers to true division. Verfied we don't actually use the division operator anywhere in the code base so this a safety for supporting both Python 2 and 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use absolute_import for all Python filesSimon Feltman2015-09-291-0/+2
| | | | | | Use absolute_import to ensure Python 3 compatibility of the code base. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use items() instead of iteritems()Simon Feltman2015-09-291-1/+1
| | | | | | | Replace usage of iteritems() and itervalues() with items() and values() respectively. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Fix PEP-8 issueRico Tzschichholz2013-06-191-0/+2
|
* giscanner: Add a simple automatic sections file generatorJasper St. Pierre2013-06-161-0/+59
| | | | | | | | | This is a very basic sections file generator, and isn't too smart. It's simply intended to be a base to build docs on, and will be used if the user doesn't provide a sections file when calling g-ir-doc-tool, for convenience purposes. https://bugzilla.gnome.org/show_bug.cgi?id=699856
* tests: Update misc/pep8.py to 1.4.5Dieter Verfaillie2013-05-071-0/+4
| | | | | | | | | | | | | | | | | Version in our tree is a wee bit outdated. For example, later work will introduce an utf8 encoded python source file which our old pep8.py does not yet understand (yeah, it really was *that* ancient)... Updated from: https://raw.github.com/jcrocholl/pep8/1.4.5/pep8.py Takes 552c1f1525e37a30376790151c1ba437776682c5, f941537d1c0a40f0906490ed160db6c79af572d3, 5a4afe2a77d0ff7d9fea13dd93c3304a6ca993de and a17f157e19bd6792c00321c8020dca5e5a281f45 into account... https://bugzilla.gnome.org/show_bug.cgi?id=699535
* sectionparser: Ignore other directives to gtk-docJasper St. Pierre2013-05-071-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: Remove the main subsectionJasper St. Pierre2013-05-071-2/+2
| | | | | | This isn't how subsections work https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: Add support for <INCLUDE>Jasper St. Pierre2013-05-071-0/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: RenameJasper St. Pierre2013-05-071-2/+2
| | | | | | It's called a sections file, not a section file. https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: Allow subsections with no nameJasper St. Pierre2013-05-071-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: Fix subsection regexJasper St. Pierre2013-05-071-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: Fix regex matchingJasper St. Pierre2013-05-071-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=699856
* sectionparser: Construct Subsections, not SectionsJasper St. Pierre2013-05-071-1/+1
| | | | | | Whoops! https://bugzilla.gnome.org/show_bug.cgi?id=699856
* giscanner: remove unused variables and importsDieter Verfaillie2013-04-091-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=697615
* giscanner: Add a new quick hack module for scanning section filesJasper St. Pierre2013-02-011-0/+78
This will be used to group symbols into documentation sections.