|
| 1 | +# testing comments in function definition |
| 2 | +def foo( # before args |
| 3 | + a=42, # between |
| 4 | + # args |
| 5 | + b= # in args |
| 6 | + 24, |
| 7 | + d # before '=' |
| 8 | + =99, |
| 9 | + e |
| 10 | + ) # incomplete definition, missing COLON, you're probably typing it |
| 11 | + # pre docstring |
| 12 | + '''Docstring''' |
| 13 | + # post docstring |
| 14 | + |
| 15 | +def bar(): return 1 |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python |
| 21 | + testing comments in function definition : comment.line.number-sign.python, source.python |
| 22 | +def : meta.function.python, source.python, storage.type.function.python |
| 23 | + : meta.function.python, source.python |
| 24 | +foo : entity.name.function.python, meta.function.python, source.python |
| 25 | +( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python |
| 26 | + : meta.function.parameters.python, meta.function.python, source.python |
| 27 | +# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python |
| 28 | + before args : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python |
| 29 | + : meta.function.parameters.python, meta.function.python, source.python |
| 30 | +a : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python |
| 31 | += : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python |
| 32 | +42 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python |
| 33 | +, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python |
| 34 | + : meta.function.parameters.python, meta.function.python, source.python |
| 35 | +# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python |
| 36 | + between : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python |
| 37 | + : meta.function.parameters.python, meta.function.python, source.python |
| 38 | +# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python |
| 39 | + args : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python |
| 40 | + : meta.function.parameters.python, meta.function.python, source.python |
| 41 | +b : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python |
| 42 | += : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python |
| 43 | + : meta.function.parameters.python, meta.function.python, source.python |
| 44 | +# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python |
| 45 | + in args : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python |
| 46 | + : meta.function.parameters.python, meta.function.python, source.python |
| 47 | +24 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python |
| 48 | +, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python |
| 49 | + : meta.function.parameters.python, meta.function.python, source.python |
| 50 | +d : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python |
| 51 | + : meta.function.parameters.python, meta.function.python, source.python |
| 52 | +# : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, punctuation.definition.comment.python, source.python |
| 53 | + before '=' : comment.line.number-sign.python, meta.function.parameters.python, meta.function.python, source.python |
| 54 | + : meta.function.parameters.python, meta.function.python, source.python |
| 55 | += : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python |
| 56 | +99 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python |
| 57 | +, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python |
| 58 | + : meta.function.parameters.python, meta.function.python, source.python |
| 59 | +e : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python |
| 60 | + : meta.function.parameters.python, meta.function.python, source.python |
| 61 | +) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python |
| 62 | + : meta.function.python, source.python |
| 63 | +# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python |
| 64 | + incomplete definition, missing COLON, you're probably typing it : comment.line.number-sign.python, source.python |
| 65 | + : source.python |
| 66 | +# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python |
| 67 | + pre docstring : comment.line.number-sign.python, source.python |
| 68 | + : source.python |
| 69 | +''' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.multi.python |
| 70 | +Docstring : source.python, string.quoted.docstring.multi.python |
| 71 | +''' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.multi.python |
| 72 | + : source.python |
| 73 | +# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python |
| 74 | + post docstring : comment.line.number-sign.python, source.python |
| 75 | + : source.python |
| 76 | +def : meta.function.python, source.python, storage.type.function.python |
| 77 | + : meta.function.python, source.python |
| 78 | +bar : entity.name.function.python, meta.function.python, source.python |
| 79 | +( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python |
| 80 | +) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python |
| 81 | +: : meta.function.python, punctuation.section.function.begin.python, source.python |
| 82 | + : source.python |
| 83 | +return : keyword.control.flow.python, source.python |
| 84 | + : source.python |
| 85 | +1 : constant.numeric.dec.python, source.python |
0 commit comments