diff options
author | Vadim Zeitlin <vz-swig@zeitlins.org> | 2020-03-03 15:48:42 +0100 |
---|---|---|
committer | Vadim Zeitlin <vz-swig@zeitlins.org> | 2020-03-04 00:57:31 +0100 |
commit | f57b096c92983758b49c2231fdfd7cb0a75690f5 (patch) | |
tree | 7f822a788f31ba0cb82f1ea38708043ed3d08bf5 /Examples/test-suite/doxygen_misc_constructs.h | |
parent | b81cd1bdab8e36dc8bebe6ce4d23dcf0564caaf3 (diff) | |
download | swig-f57b096c92983758b49c2231fdfd7cb0a75690f5.tar.gz |
Fix generated Python code for Doxygen comments with triple quotes
In addition to the changes in the previous commit, also avoid syntax
errors in the generated Python docstrings by splitting them into several
parts if there are 3 quotes in a row in the input, as it's impossible to
have them inside triple-quoted strings, generally speaking (i.e. if
there are occurrences of both """ and ''' inside the string).
Diffstat (limited to 'Examples/test-suite/doxygen_misc_constructs.h')
-rw-r--r-- | Examples/test-suite/doxygen_misc_constructs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/test-suite/doxygen_misc_constructs.h b/Examples/test-suite/doxygen_misc_constructs.h index 7782b532f..9e81aaf28 100644 --- a/Examples/test-suite/doxygen_misc_constructs.h +++ b/Examples/test-suite/doxygen_misc_constructs.h @@ -94,3 +94,9 @@ void cycle(int id, char *fileName) /// This doc comment ends with a quote: "and that's ok" void doc_ends_with_quote() {} +/** + This comment contains embedded triple-quoted string: + + """How quaint""" + */ +void doc_with_triple_quotes() {} |