This is an automated email from the ASF dual-hosted git repository. kezhenxu94 pushed a commit to branch docstring in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
commit 3f2294299a31480b56cace1f74851ab0fa10dd4a Author: kezhenxu94 <[email protected]> AuthorDate: Tue Apr 12 15:03:04 2022 +0800 Add Python DocString comment style --- assets/styles.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/styles.yaml b/assets/styles.yaml index d7992f0..869fef4 100644 --- a/assets/styles.yaml +++ b/assets/styles.yaml @@ -108,3 +108,10 @@ start: '#' middle: '#' end: '#' + +- id: PythonDocStringStyle + # (interpreter binary and encoding comment) | (only interpreter binary) | (only encoding comment) + after: '(?m)(^*#!.+$\n^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+).*$)|(^*#!.+$)|(^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+).*$)' + start: '"""' + middle: ~ + end: '"""'
