|
217 | 217 | {
|
218 | 218 | "include": "#comment_line"
|
219 | 219 | },
|
| 220 | + { |
| 221 | + "include": "#comment_end_of_line" |
| 222 | + }, |
220 | 223 | {
|
221 | 224 | "include": "#comment_block"
|
222 | 225 | }
|
|
313 | 316 | },
|
314 | 317 | {
|
315 | 318 | "include": "#comment_line"
|
| 319 | + }, |
| 320 | + { |
| 321 | + "include": "#comment_end_of_line" |
316 | 322 | }
|
317 | 323 | ]
|
318 | 324 | },
|
|
549 | 555 | {
|
550 | 556 | "include": "#comment_line"
|
551 | 557 | },
|
| 558 | + { |
| 559 | + "include": "#comment_end_of_line" |
| 560 | + }, |
552 | 561 | {
|
553 | 562 | "match": "\\b(only)\\b",
|
554 | 563 | "name": "keyword.control.operator.css.sass"
|
|
840 | 849 | {
|
841 | 850 | "include": "#comment_line"
|
842 | 851 | },
|
| 852 | + { |
| 853 | + "include": "#comment_end_of_line" |
| 854 | + }, |
843 | 855 | {
|
844 | 856 | "include": "#comment_block"
|
845 | 857 | },
|
|
946 | 958 | "name": "comment.block.sass"
|
947 | 959 | },
|
948 | 960 | "comment_line": {
|
949 |
| - "begin": "//", |
| 961 | + "begin": "^([ \\t]*)(//)", |
| 962 | + "while": "^\\1(\\s|\\t)+.*$", |
950 | 963 | "beginCaptures": {
|
951 | 964 | "0": {
|
952 | 965 | "name": "punctuation.definition.comment.sass"
|
953 | 966 | }
|
954 | 967 | },
|
| 968 | + "name": "comment.line.sass" |
| 969 | + }, |
| 970 | + "comment_end_of_line": { |
| 971 | + "begin": "//", |
955 | 972 | "end": "\\n",
|
| 973 | + "captures": { |
| 974 | + "0": { |
| 975 | + "name": "punctuation.definition.comment.sass" |
| 976 | + } |
| 977 | + }, |
956 | 978 | "name": "comment.line.sass"
|
957 | 979 | },
|
958 | 980 | "constant_default": {
|
|
1107 | 1129 | },
|
1108 | 1130 | {
|
1109 | 1131 | "include": "#comment_line"
|
| 1132 | + }, |
| 1133 | + { |
| 1134 | + "include": "#comment_end_of_line" |
1110 | 1135 | }
|
1111 | 1136 | ]
|
1112 | 1137 | },
|
|
1175 | 1200 | {
|
1176 | 1201 | "include": "#comment_line"
|
1177 | 1202 | },
|
| 1203 | + { |
| 1204 | + "include": "#comment_end_of_line" |
| 1205 | + }, |
1178 | 1206 | {
|
1179 | 1207 | "match": "\\b([\\w-]+)\\s*(:)",
|
1180 | 1208 | "captures": {
|
|
1766 | 1794 | {
|
1767 | 1795 | "include": "#comment_line"
|
1768 | 1796 | },
|
| 1797 | + { |
| 1798 | + "include": "#comment_end_of_line" |
| 1799 | + }, |
1769 | 1800 | {
|
1770 | 1801 | "include": "#map"
|
1771 | 1802 | },
|
|
0 commit comments