Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/extensions/less/syntaxes/less.tmLanguage.json
T

1 line
8.7 KiB
JSON
Raw Normal View History

2025-05-09 16:55:09 +08:00
{"information_for_contributors":["This file has been converted from https://github.com/atom/language-less/blob/master/grammars/less.cson","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/atom/language-less/commit/87d4d59e8de6796b506b81a16e1dc1fafc99d30f","name":"Less","scopeName":"source.css.less","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"entity.other.attribute-name.class.mixin.css"}},"match":"(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())"},{"captures":{"1":{"name":"entity.other.attribute-name.class.css"},"2":{"name":"punctuation.definition.entity.css"},"4":{"name":"variable.other.interpolation.less"}},"match":"((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)"},{"captures":{"0":{"name":"entity.other.attribute-name.parent-selector.css"},"1":{"name":"punctuation.definition.entity.css"}},"match":"(&)[a-zA-Z0-9_-]*"},{"begin":"(format|local|url|attr|counter|counters)\\s*(\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.css"}},"end":"\\)","endCaptures":{"0":{"name":"punctuation.section.function.css"}},"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"match":"\\\\.","name":"constant.character.escape.css"}]},{"begin":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"match":"\\\\(\\d{1,6}|.)","name":"constant.character.escape.css"}]},{"match":"[^'\") \\t]+","name":"variable.parameter.misc.css"}]},{"match":"(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)","name":"constant.other.rgb-value.css"},{"captures":{"1":{"name":"entity.other.attribute-name.id"},"2":{"name":"punctuation.definition.entity.css"},"4":{"name":"variable.other.interpolation.less"}},"match":"((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)","name":"meta.selector.css"},{"begin":"/\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.css"}},"end":"\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.css"}},"name":"comment.block.css"},{"include":"source.css#numeric-values"},{"captures":{"1":{"name":"punctuation.definition.begin.entity.css"},"2":{"name":"entity.other.attribute-name.attribute.css"},"3":{"name":"punctuation.separator.operator.css"},"4":{"name":"string.unquoted.attribute-value.css"},"5":{"name":"string.quoted.double.attribute-value.css"},"6":{"name":"punctuation.definition.string.begin.css"},"7":{"name":"punctuation.definition.string.end.css"},"8":{"name":"punctuation.definition.end.entity.css"}},"match":"(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])","name":"meta.attribute-selector.css"},{"begin":"((@)import\\b)","beginCaptures":{"1":{"name":"keyword.control.at-rule.import.less"},"2":{"name":"punctuation.definition.keyword.less"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.import.css","patterns":[{"match":"(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)","name":"keyword.control.import.option.less"},{"include":"#brace_round"},{"include":"source.css#commas"},{"include":"#strings"}]},{"captures":{"1":{"name":"keyword.control.at-rule.fontface.css"},"2":{"name":"punctuation.definition.keyword.css"}},"match":"^\\s*((@)font-face\\b)","name":"meta.at-rule.fontface.css"},{"captures":{"1":{"name":"keyword.control.at-rule.media.css"},"2":{"name":"punctuation.definition.keyword.css"}},"match":"^\\s*((@)media\\b)","name":"meta.at-rule.media.css"},{"include":"source.css#media-features"},{"match":"\\b(tv|tty|screen|projection|print|handheld|embossed|bra