PY-16766 Fix recognition of Google code style docstrings from docstring content
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 2 Sep 2015 12:04:13 +0000 (15:04 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 2 Sep 2015 12:04:13 +0000 (15:04 +0300)
commitdffddee65940bf71906f6a68178f5b0b150d8f33
tree3c8df147641ebcd937148978484a26df49593e37
parent7a22acb8d3d92c445cc4228c3048beb9f4a1c795
PY-16766 Fix recognition of Google code style docstrings from docstring content

We should try all possible section headers inside docstring and confirm
Google code style once at least one of them turns out to be known.

Also I replaced predefined "\s" character group in internal regular
expressions intended for matching on single line with explicit [ \t],
because otherwise they match section headers with surrounding empty
lines.
python/src/com/jetbrains/python/documentation/DocStringUtil.java
python/src/com/jetbrains/python/documentation/GoogleCodeStyleDocString.java
python/src/com/jetbrains/python/documentation/NumpyDocString.java
python/testSrc/com/jetbrains/python/PySectionBasedDocStringTest.java