|
8899 | 8899 | <array> |
8900 | 8900 | <dict> |
8901 | 8901 | <key>name</key> |
8902 | | - <string>comment.block.cs</string> |
| 8902 | + <string>comment.block.documentation.cs</string> |
8903 | 8903 | <key>begin</key> |
8904 | | - <string>/\*</string> |
8905 | | - <key>beginCaptures</key> |
| 8904 | + <string>(^\s+)?(///)(?!/)</string> |
| 8905 | + <key>while</key> |
| 8906 | + <string>^(\s*)(///)(?!/)</string> |
| 8907 | + <key>captures</key> |
8906 | 8908 | <dict> |
8907 | | - <key>0</key> |
| 8909 | + <key>1</key> |
8908 | 8910 | <dict> |
8909 | 8911 | <key>name</key> |
8910 | | - <string>punctuation.definition.comment.cs</string> |
| 8912 | + <string>punctuation.whitespace.comment.leading.cs</string> |
8911 | 8913 | </dict> |
8912 | | - </dict> |
8913 | | - <key>end</key> |
8914 | | - <string>\*/</string> |
8915 | | - <key>endCaptures</key> |
8916 | | - <dict> |
8917 | | - <key>0</key> |
| 8914 | + <key>2</key> |
8918 | 8915 | <dict> |
8919 | 8916 | <key>name</key> |
8920 | 8917 | <string>punctuation.definition.comment.cs</string> |
8921 | 8918 | </dict> |
8922 | 8919 | </dict> |
| 8920 | + <key>patterns</key> |
| 8921 | + <array> |
| 8922 | + <dict> |
| 8923 | + <key>include</key> |
| 8924 | + <string>#xml-doc-comment</string> |
| 8925 | + </dict> |
| 8926 | + </array> |
8923 | 8927 | </dict> |
8924 | 8928 | <dict> |
| 8929 | + <key>name</key> |
| 8930 | + <string>comment.block.documentation.cs</string> |
8925 | 8931 | <key>begin</key> |
8926 | | - <string>(^\s+)?(?=//)</string> |
8927 | | - <key>beginCaptures</key> |
| 8932 | + <string>(^\s+)?(/\*\*)(?!/)</string> |
| 8933 | + <key>end</key> |
| 8934 | + <string>(^\s+)?(\*/)</string> |
| 8935 | + <key>captures</key> |
8928 | 8936 | <dict> |
8929 | 8937 | <key>1</key> |
8930 | 8938 | <dict> |
8931 | 8939 | <key>name</key> |
8932 | 8940 | <string>punctuation.whitespace.comment.leading.cs</string> |
8933 | 8941 | </dict> |
| 8942 | + <key>2</key> |
| 8943 | + <dict> |
| 8944 | + <key>name</key> |
| 8945 | + <string>punctuation.definition.comment.cs</string> |
| 8946 | + </dict> |
8934 | 8947 | </dict> |
8935 | | - <key>end</key> |
8936 | | - <string>(?=$)</string> |
8937 | 8948 | <key>patterns</key> |
8938 | 8949 | <array> |
8939 | 8950 | <dict> |
8940 | | - <key>name</key> |
8941 | | - <string>comment.block.documentation.cs</string> |
8942 | 8951 | <key>begin</key> |
8943 | | - <string>(?<!/)///(?!/)</string> |
8944 | | - <key>beginCaptures</key> |
| 8952 | + <string>\G(?=(?~\*/)$)</string> |
| 8953 | + <key>while</key> |
| 8954 | + <string>^(\s*+)(\*(?!/))?(?=(?~\*/)$)</string> |
| 8955 | + <key>whileCaptures</key> |
8945 | 8956 | <dict> |
8946 | | - <key>0</key> |
| 8957 | + <key>1</key> |
| 8958 | + <dict> |
| 8959 | + <key>name</key> |
| 8960 | + <string>punctuation.whitespace.comment.leading.cs</string> |
| 8961 | + </dict> |
| 8962 | + <key>2</key> |
8947 | 8963 | <dict> |
8948 | 8964 | <key>name</key> |
8949 | 8965 | <string>punctuation.definition.comment.cs</string> |
8950 | 8966 | </dict> |
8951 | 8967 | </dict> |
8952 | | - <key>end</key> |
8953 | | - <string>(?=$)</string> |
8954 | 8968 | <key>patterns</key> |
8955 | 8969 | <array> |
8956 | 8970 | <dict> |
|
8960 | 8974 | </array> |
8961 | 8975 | </dict> |
8962 | 8976 | <dict> |
8963 | | - <key>name</key> |
8964 | | - <string>comment.line.double-slash.cs</string> |
8965 | | - <key>begin</key> |
8966 | | - <string>(?<!/)//(?:(?!/)|(?=//))</string> |
8967 | | - <key>beginCaptures</key> |
8968 | | - <dict> |
8969 | | - <key>0</key> |
8970 | | - <dict> |
8971 | | - <key>name</key> |
8972 | | - <string>punctuation.definition.comment.cs</string> |
8973 | | - </dict> |
8974 | | - </dict> |
8975 | | - <key>end</key> |
8976 | | - <string>(?=$)</string> |
| 8977 | + <key>include</key> |
| 8978 | + <string>#xml-doc-comment</string> |
8977 | 8979 | </dict> |
8978 | 8980 | </array> |
8979 | 8981 | </dict> |
| 8982 | + <dict> |
| 8983 | + <key>name</key> |
| 8984 | + <string>comment.line.double-slash.cs</string> |
| 8985 | + <key>begin</key> |
| 8986 | + <string>(^\s+)?(//).*$</string> |
| 8987 | + <key>while</key> |
| 8988 | + <string>^(\s*)(//).*$</string> |
| 8989 | + <key>captures</key> |
| 8990 | + <dict> |
| 8991 | + <key>1</key> |
| 8992 | + <dict> |
| 8993 | + <key>name</key> |
| 8994 | + <string>punctuation.whitespace.comment.leading.cs</string> |
| 8995 | + </dict> |
| 8996 | + <key>2</key> |
| 8997 | + <dict> |
| 8998 | + <key>name</key> |
| 8999 | + <string>punctuation.definition.comment.cs</string> |
| 9000 | + </dict> |
| 9001 | + </dict> |
| 9002 | + </dict> |
| 9003 | + <dict> |
| 9004 | + <key>name</key> |
| 9005 | + <string>comment.block.cs</string> |
| 9006 | + <key>begin</key> |
| 9007 | + <string>/\*</string> |
| 9008 | + <key>end</key> |
| 9009 | + <string>\*/</string> |
| 9010 | + <key>captures</key> |
| 9011 | + <dict> |
| 9012 | + <key>0</key> |
| 9013 | + <dict> |
| 9014 | + <key>name</key> |
| 9015 | + <string>punctuation.definition.comment.cs</string> |
| 9016 | + </dict> |
| 9017 | + </dict> |
| 9018 | + </dict> |
8980 | 9019 | </array> |
8981 | 9020 | </dict> |
8982 | 9021 | <key>xml-doc-comment</key> |
|
0 commit comments