155155 "name" : " meta.at-rule.else.scss" ,
156156 "patterns" : [
157157 {
158- "include" : " #logical_operators "
158+ "include" : " #conditional_operators "
159159 },
160160 {
161161 "include" : " #variable"
295295 "name" : " meta.at-rule.if.scss" ,
296296 "patterns" : [
297297 {
298- "include" : " #logical_operators "
298+ "include" : " #conditional_operators "
299299 },
300300 {
301301 "include" : " #variable"
388388 ]
389389 },
390390 "at_rule_keyframes" : {
391+ "begin" : " (?<=^|\\ s)(@)(?:-(?:webkit|moz)-)?keyframes\\ b" ,
392+ "beginCaptures" : {
393+ "0" : {
394+ "name" : " keyword.control.at-rule.keyframes.scss"
395+ },
396+ "1" : {
397+ "name" : " punctuation.definition.keyword.scss"
398+ }
399+ },
400+ "end" : " (?<=})" ,
401+ "name" : " meta.at-rule.keyframes.scss" ,
391402 "patterns" : [
392403 {
393- "begin " : " ^ \\ s*((@)(-[ \\ w-]*-)?keyframes \\ b) \\ s*([ \\ w- ]*)" ,
404+ "match " : " (?<=@keyframes) \\ s+((?:[_A-Za-z][- \\ w]|-[_A-Za-z])[- \\ w]*)" ,
394405 "captures" : {
395406 "1" : {
396- "name" : " keyword.control.at-rule.keyframes.scss"
397- },
398- "2" : {
399- "name" : " punctuation.definition.keyword.scss"
407+ "name" : " entity.name.function.scss"
408+ }
409+ }
410+ },
411+ {
412+ "begin" : " (?<=@keyframes)\\ s+(\" )" ,
413+ "beginCaptures" : {
414+ "1" : {
415+ "name" : " punctuation.definition.string.begin.scss"
416+ }
417+ },
418+ "end" : " \" " ,
419+ "endCaptures" : {
420+ "0" : {
421+ "name" : " punctuation.definition.string.end.scss"
422+ }
423+ },
424+ "name" : " string.quoted.double.scss" ,
425+ "contentName" : " entity.name.function.scss" ,
426+ "patterns" : [
427+ {
428+ "match" : " \\\\ (\\ h{1,6}|.)" ,
429+ "name" : " constant.character.escape.scss"
400430 },
401- "3" : {
402- "name" : " punctuation.definition.keyword.scss"
431+ {
432+ "include" : " #interpolation"
433+ }
434+ ]
435+ },
436+ {
437+ "begin" : " (?<=@keyframes)\\ s+(')" ,
438+ "beginCaptures" : {
439+ "1" : {
440+ "name" : " punctuation.definition.string.begin.scss"
441+ }
442+ },
443+ "end" : " '" ,
444+ "endCaptures" : {
445+ "0" : {
446+ "name" : " punctuation.definition.string.end.scss"
447+ }
448+ },
449+ "name" : " string.quoted.single.scss" ,
450+ "contentName" : " entity.name.function.scss" ,
451+ "patterns" : [
452+ {
453+ "match" : " \\\\ (\\ h{1,6}|.)" ,
454+ "name" : " constant.character.escape.scss"
403455 },
404- "4" : {
405- "name" : " entity.name.function.scss"
456+ {
457+ "include" : " #interpolation"
458+ }
459+ ]
460+ },
461+ {
462+ "begin" : " {" ,
463+ "beginCaptures" : {
464+ "0" : {
465+ "name" : " punctuation.section.keyframes.begin.scss"
466+ }
467+ },
468+ "end" : " }" ,
469+ "endCaptures" : {
470+ "0" : {
471+ "name" : " punctuation.section.keyframes.end.scss"
406472 }
407473 },
408- "comment" : " Keyframes with Attributes" ,
409- "end" : " (?<=})(?:\\ s*$)?" ,
410- "name" : " meta.at-rule.keyframes.scss" ,
411474 "patterns" : [
412475 {
413- "begin" : " {" ,
414- "end" : " }" ,
415- "beginCaptures" : {
416- "0" : {
417- "name" : " punctuation.section.keyframes.begin.scss"
418- }
419- },
420- "endCaptures" : {
421- "0" : {
422- "name" : " punctuation.section.keyframes.end.scss"
423- }
424- },
425- "name" : " meta.keyframes.scss" ,
426- "patterns" : [
427- {
428- "match" : " (\\ b(\\ d+%|from\\ b|to\\ b))" ,
429- "name" : " entity.other.attribute-name.scss"
430- },
431- {
432- "include" : " #interpolation"
433- },
434- {
435- "include" : " #property_list"
436- }
437- ]
476+ "match" : " \\ b(?:(?:100|[1-9]\\ d|\\ d)%|from|to)(?=\\ s*{)" ,
477+ "name" : " entity.other.attribute-name.scss"
478+ },
479+ {
480+ "include" : " #flow_control"
481+ },
482+ {
483+ "include" : " #interpolation"
484+ },
485+ {
486+ "include" : " #property_list"
487+ },
488+ {
489+ "include" : " #rules"
438490 }
439491 ]
440492 }
469521 "include" : " #variable"
470522 },
471523 {
472- "include" : " #logical_operators "
524+ "include" : " #conditional_operators "
473525 },
474526 {
475527 "include" : " #media_types"
665717 ]
666718 },
667719 "at_rule_supports" : {
668- "begin" : " ((@)supports) \\ b" ,
720+ "begin" : " (?<=^| \\ s) (@)supports\\ b" ,
669721 "captures" : {
670- "1 " : {
722+ "0 " : {
671723 "name" : " keyword.control.at-rule.supports.scss"
672724 },
673- "2 " : {
725+ "1 " : {
674726 "name" : " punctuation.definition.keyword.scss"
675727 }
676728 },
677- "end" : " (?={|$) " ,
729+ "end" : " (?={)|$ " ,
678730 "name" : " meta.at-rule.supports.scss" ,
679731 "patterns" : [
680732 {
681733 "include" : " #logical_operators"
682734 },
683735 {
684- "include" : " #constant_property_value"
685- },
686- {
687- "include" : " #property_names"
688- },
689- {
690- "include" : " #property_values"
736+ "include" : " #properties"
691737 },
692738 {
693739 "match" : " \\ (" ,
696742 {
697743 "match" : " \\ )" ,
698744 "name" : " punctuation.definition.condition.end.bracket.round.scss"
699- },
700- {
701- "match" : " :" ,
702- "name" : " punctuation.separator.key-value.scss"
703745 }
704746 ]
705747 },
741783 "name" : " meta.at-rule.while.scss" ,
742784 "patterns" : [
743785 {
744- "include" : " #logical_operators "
786+ "include" : " #conditional_operators "
745787 },
746788 {
747789 "include" : " #variable"
10341076 }
10351077 ]
10361078 },
1079+ "conditional_operators" : {
1080+ "patterns" : [
1081+ {
1082+ "include" : " #comparison_operators"
1083+ },
1084+ {
1085+ "include" : " #logical_operators"
1086+ }
1087+ ]
1088+ },
1089+ "comparison_operators" : {
1090+ "match" : " ==|!=|<=|>=|<|>" ,
1091+ "name" : " keyword.operator.comparison.scss"
1092+ },
10371093 "logical_operators" : {
1038- "match" : " \\ b(==|!=|<=|>=|<|>| not|or|and) \\ b" ,
1039- "name" : " keyword.control. operator"
1094+ "match" : " \\ b(not\\ b |or\\ b |and\\ b) " ,
1095+ "name" : " keyword.operator.logical.scss "
10401096 },
10411097 "map" : {
10421098 "begin" : " \\ (" ,
11901246 }
11911247 },
11921248 "comment" : " Kuroir: fixed nested elements for sass." ,
1193- "end" : " \\ s*(;|(?=}))" ,
1249+ "end" : " \\ s*(;|(?=}| \\ ) ))" ,
11941250 "endCaptures" : {
11951251 "1" : {
11961252 "name" : " punctuation.terminator.rule.scss"
13861442 ]
13871443 },
13881444 "selector_entities" : {
1389- "match" : " \\ b(a|abbr|acronym|address|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|circle|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|g|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|image|input|ins|kbd|keygen|label|legend|li|line(?!-)|link|main|map|mark|menu|menuitem|meta|meter|nav|noframes|noscript|object(?!-)|ol|optgroup|option|output|p|param|path|picture|polygon|polyline|pre|progress|q|rb|rect|rp|rt|rtc|ruby|s|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|svg|table(?!-)|tbody|td|template|text(?!-)|textarea|textpath|tfoot|th|thead|time|title|tr|track|tspan|tt|u|ul|var|video|wbr)\\ b" ,
1445+ "match" : " \\ b(a|abbr|acronym|address|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|circle|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|ellipse| em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|g|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|image|input|ins|kbd|keygen|label|legend|li|line(?!-)|link|main|map|mark|menu|menuitem|meta|meter|nav|noframes|noscript|object(?!-)|ol|optgroup|option|output|p|param|path|picture|polygon|polyline|pre|progress|q|rb|rect|rp|rt|rtc|ruby|s|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|svg|table(?!-)|tbody|td|template|text(?!-)|textarea|textpath|tfoot|th|thead|time|title|tr|track|tspan|tt|u|ul|var|video|wbr)\\ b" ,
13901446 "name" : " entity.name.tag.scss"
13911447 },
13921448 "selector_custom" : {
16121668 "name" : " variable.scss"
16131669 }
16141670 },
1615- "version" : " https://github.com/atom/language-sass/commit/38b8d07b0e5edc8ac1e3ac1e370a208e838fc198 "
1671+ "version" : " https://github.com/atom/language-sass/commit/b0417d1412a9169562f637133099fe2bb841a735 "
16161672}
0 commit comments