Comments (1)
An idea of how to change re_fieldname_match:
Option 1 : let double precision
be a special case of type : re_fieldname_match = re.compile(r'(?P<type>\b(?:double precision|\w+)\b(?P<kind>\s*\(.*\))?)?\s*(?P<name>\b\w+\b)\s*(?P<shape>\(.*\))?\s*(?P<sattrs>\[.+\])?').match
Option 2 : accept only variable names without spaces but types are accepted with one space :
re_fieldname_match = re.compile(r'(?P<type>\b\w+ ?(?:\w+)?\b(?P<kind>\s*\(.*\))?)?\s*(?P<name>\b\w+\b)\s*(?P<shape>\(.*\))?\s*(?P<sattrs>\[.+\])?').match
from sphinx-fortran.
Related Issues (20)
- autodoc feature mixes up descriptions HOT 6
- Generic procedures detection HOT 3
- cannot import extention HOT 1
- I have solved an error "KeyError: 'vardescsearch'". HOT 1
- optional argument not detected as optional for autodoc
- Why lowercase filenames ?
- Consider adding the sphinx-extension GitHub topic
- exception: 'fromsky' with abstract interface HOT 3
- Error for autodoc on empty module HOT 1
- Error when parsing source with abstract interface HOT 1
- Missing dependencies on 'six' and 'numpy' HOT 2
- error processing files on windows NT system HOT 1
- Fatal error when documenting multiple types in the same file HOT 4
- Modules are found by autodoc only if written in lower case in the .rst, even if they are upper case in the code
- Type-bound procedures
- broken link in Readme
- Let the comment header as raw text or literal block HOT 1
- fortran_parse error in the fortran_autodoc module for a basic example
- TypeError in sort in "fortran_autodoc.py" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinx-fortran.