This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git


The following commit(s) were added to refs/heads/main by this push:
     new 43bbe62  Add Python DocString comment style (#100)
43bbe62 is described below

commit 43bbe62e0002679e4e4d33b802d8eb4dc615bfae
Author: kezhenxu94 <[email protected]>
AuthorDate: Tue Apr 12 15:07:46 2022 +0800

    Add Python DocString comment style (#100)
---
 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: '"""'

Reply via email to