|
| 1 | +{ |
| 2 | + "injectionSelector": "L:source.rust -string -comment -meta.embedded.block.rustdoc.md", |
| 3 | + "patterns": [ |
| 4 | + { |
| 5 | + "include": "#triple-slash" |
| 6 | + }, |
| 7 | + { |
| 8 | + "include": "#double-slash-exclamation" |
| 9 | + }, |
| 10 | + { |
| 11 | + "include": "#slash-start-exclamation" |
| 12 | + }, |
| 13 | + { |
| 14 | + "include": "#slash-double-start" |
| 15 | + } |
| 16 | + ], |
| 17 | + "repository": { |
| 18 | + "triple-slash": { |
| 19 | + "begin": "(^|\\G)\\s*(///) ?", |
| 20 | + "captures": { |
| 21 | + "2": { |
| 22 | + "name": "comment.line.double-slash.rust" |
| 23 | + } |
| 24 | + }, |
| 25 | + "name": "comment.quote_code.triple-slash.rust", |
| 26 | + "contentName": "meta.embedded.block.rustdoc", |
| 27 | + "patterns": [ |
| 28 | + { |
| 29 | + "include": "text.html.markdown.rustdoc" |
| 30 | + } |
| 31 | + ], |
| 32 | + "while": "(^|\\G)\\s*(///) ?" |
| 33 | + }, |
| 34 | + "double-slash-exclamation": { |
| 35 | + "begin": "(^|\\G)\\s*(//!) ?", |
| 36 | + "captures": { |
| 37 | + "2": { |
| 38 | + "name": "comment.line.double-slash.rust" |
| 39 | + } |
| 40 | + }, |
| 41 | + "name": "comment.quote_code.double-slash-exclamation.rust", |
| 42 | + "contentName": "meta.embedded.block.rustdoc", |
| 43 | + "patterns": [ |
| 44 | + { |
| 45 | + "include": "text.html.markdown.rustdoc" |
| 46 | + } |
| 47 | + ], |
| 48 | + "while": "(^|\\G)\\s*(//!) ?" |
| 49 | + }, |
| 50 | + "slash-start-exclamation": { |
| 51 | + "begin": "(^)(/\\*!) ?$", |
| 52 | + "captures": { |
| 53 | + "2": { |
| 54 | + "name": "comment.block.rust" |
| 55 | + } |
| 56 | + }, |
| 57 | + "name": "comment.quote_code.slash-start-exclamation.rust", |
| 58 | + "contentName": "meta.embedded.block.rustdoc", |
| 59 | + "patterns": [ |
| 60 | + { |
| 61 | + "include": "text.html.markdown.rustdoc" |
| 62 | + } |
| 63 | + ], |
| 64 | + "end": "( ?)(\\*/)" |
| 65 | + }, |
| 66 | + "slash-double-start": { |
| 67 | + "name": "comment.quote_code.slash-double-start-quote-star.rust", |
| 68 | + "begin": "(?:^)\\s*/\\*\\* ?$", |
| 69 | + "end": "\\*/", |
| 70 | + "patterns": [ |
| 71 | + { |
| 72 | + "include": "#quote-star" |
| 73 | + } |
| 74 | + ] |
| 75 | + }, |
| 76 | + "quote-star": { |
| 77 | + "begin": "(^|\\G)\\s*(\\*(?!/)) ?", |
| 78 | + "captures": { |
| 79 | + "2": { |
| 80 | + "name": "comment.punctuation.definition.quote_code.slash-star.MR" |
| 81 | + } |
| 82 | + }, |
| 83 | + "contentName": "meta.embedded.block.rustdoc", |
| 84 | + "patterns": [ |
| 85 | + { |
| 86 | + "include": "text.html.markdown.rustdoc" |
| 87 | + } |
| 88 | + ], |
| 89 | + "while": "(^|\\G)\\s*(\\*(?!/)) ?" |
| 90 | + } |
| 91 | + }, |
| 92 | + "scopeName": "comment.markdown-cell-inject.rustdoc" |
| 93 | +} |
0 commit comments