Skip to content

Instantly share code, notes, and snippets.

@digicase
Created March 6, 2012 07:48
Show Gist options
  • Select an option

  • Save digicase/1984764 to your computer and use it in GitHub Desktop.

Select an option

Save digicase/1984764 to your computer and use it in GitHub Desktop.

Revisions

  1. digicase revised this gist Mar 6, 2012. 2 changed files with 1010 additions and 346 deletions.
    1,010 changes: 1,010 additions & 0 deletions CSS.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,1010 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>comment</key>
    <string></string>
    <key>fileTypes</key>
    <array>
    <string>css</string>
    <string>css.erb</string>
    </array>
    <key>foldingStartMarker</key>
    <string>/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|\/\*\s*@group\s*.*\s*\*\/</string>
    <key>foldingStopMarker</key>
    <string>(?&lt;!\*)\*\*/|^\s*\}|\/*\s*@end\s*\*\/</string>
    <key>keyEquivalent</key>
    <string>^~C</string>
    <key>name</key>
    <string>CSS</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#comment-block</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#selector</string>
    </dict>
    <dict>
    <key>begin</key>
    <string>\s*((@)charset\b)\s*</string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.control.at-rule.charset.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.keyword.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*((?=;|$))</string>
    <key>name</key>
    <string>meta.at-rule.charset.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#string-double</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-single</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>\s*((@)import\b)\s*</string>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.control.at-rule.import.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.keyword.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*((?=;|\}))</string>
    <key>name</key>
    <string>meta.at-rule.import.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#string-double</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-single</string>
    </dict>
    <dict>
    <key>begin</key>
    <string>\s*(url)\s*(\()\s*</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>support.function.url.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*(\))\s*</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>[^'") \t]+</string>
    <key>name</key>
    <string>variable.parameter.url.css</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-single</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-double</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>include</key>
    <string>#media-query-list</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>^\s*((@)font-face)\s*(?=\{)</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.control.at-rule.font-face.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.keyword.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*(\})</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.property-list.css</string>
    </dict>
    </dict>
    <key>name</key>
    <string>meta.at-rule.font-face.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#rule-list</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>(?=^\s*@media\s*.*?\{)</string>
    <key>end</key>
    <string>\s*(\})</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.property-list.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>begin</key>
    <string>^\s*((@)media)(?=.*?\{)</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.control.at-rule.media.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.keyword.css</string>
    </dict>
    <key>3</key>
    <dict>
    <key>name</key>
    <string>support.constant.media.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*(?=\{)</string>
    <key>name</key>
    <string>meta.at-rule.media.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#media-query-list</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>\s*(\{)</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.property-list.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>(?=\})</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>$self</string>
    </dict>
    </array>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>(?=\{)</string>
    <key>end</key>
    <string>(\})</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.property-list.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#rule-list</string>
    </dict>
    </array>
    </dict>
    </array>
    <key>repository</key>
    <dict>
    <key>color-values</key>
    <dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>comment</key>
    <string>http://www.w3.org/TR/CSS21/syndata.html#value-def-color</string>
    <key>match</key>
    <string>\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b</string>
    <key>name</key>
    <string>support.constant.color.w3c-standard-color-name.css</string>
    </dict>
    <dict>
    <key>comment</key>
    <string>These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp</string>
    <key>match</key>
    <string>\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b</string>
    <key>name</key>
    <string>invalid.deprecated.color.w3c-non-standard-color-name.css</string>
    </dict>
    <dict>
    <key>begin</key>
    <string>(hsla?|rgba?)\s*(\()</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>support.function.misc.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>(\))</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>(?x)\b
    (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*){2}
    (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\b)
    (\s*,\s*((0?\.[0-9]+)|[0-1]))?
    </string>
    <key>name</key>
    <string>constant.other.color.rgb-value.css</string>
    </dict>
    <dict>
    <key>match</key>
    <string>\b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%</string>
    <key>name</key>
    <string>constant.other.color.rgb-percentage.css</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#numeric-values</string>
    </dict>
    </array>
    </dict>
    </array>
    </dict>
    <key>comment-block</key>
    <dict>
    <key>begin</key>
    <string>/\*</string>
    <key>captures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.comment.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\*/</string>
    <key>name</key>
    <string>comment.block.css</string>
    </dict>
    <key>media-query</key>
    <dict>
    <key>begin</key>
    <string>(?i)\s*(only|not)?\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.operator.logic.media.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>support.constant.media.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*(?:(,)|(?=[{;]))</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.arbitrary-repitition.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>begin</key>
    <string>\s*(and)?\s*(\()\s*</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.operator.logic.media.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\)</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>begin</key>
    <string>(?x)
    (
    ((min|max)-)?
    (
    ((device-)?(height|width|aspect-ratio))|
    (color(-index)?)|monochrome|resolution
    )
    )|grid|scan|orientation
    \s*(?=[:)])</string>
    <key>beginCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>support.type.property-name.media.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>(:)|(?=\))</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.separator.key-value.css</string>
    </dict>
    </dict>
    </dict>
    <dict>
    <key>match</key>
    <string>\b(portrait|landscape|progressive|interlace)</string>
    <key>name</key>
    <string>support.constant.property-value.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>keyword.operator.arithmetic.css</string>
    </dict>
    <key>3</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>\s*(\d+)(/)(\d+)</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#numeric-values</string>
    </dict>
    </array>
    </dict>
    </array>
    </dict>
    <key>media-query-list</key>
    <dict>
    <key>begin</key>
    <string>\s*(?=[^{;])</string>
    <key>end</key>
    <string>\s*(?=[{;])</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#media-query</string>
    </dict>
    </array>
    </dict>
    <key>numeric-values</key>
    <dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.constant.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b</string>
    <key>name</key>
    <string>constant.other.color.rgb-value.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>keyword.other.unit.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(?x)
    (?:-|\+)?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))
    ((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|s)\b|%)?
    </string>
    <key>name</key>
    <string>constant.numeric.css</string>
    </dict>
    </array>
    </dict>
    <key>property-values</key>
    <dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>\b(absolute|all(-scroll)?|always|armenian|auto|avoid|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|geometricPrecision|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|optimize(Legibility|Quality|Speed)|outset|outside|overline|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical(-(ideographic|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small|large))|painted|fill|stroke)\b</string>
    <key>name</key>
    <string>support.constant.property-value.css</string>
    </dict>
    <dict>
    <key>match</key>
    <string>(\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\b)</string>
    <key>name</key>
    <string>support.constant.font-name.css</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#numeric-values</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#color-values</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-double</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-single</string>
    </dict>
    <dict>
    <key>begin</key>
    <string>(rect)\s*(\()</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>support.function.misc.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>(\))</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#numeric-values</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>(format|local|url|attr|counter|counters)\s*(\()</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>support.function.misc.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>(\))</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#string-single</string>
    </dict>
    <dict>
    <key>include</key>
    <string>#string-double</string>
    </dict>
    <dict>
    <key>match</key>
    <string>[^'") \t]+</string>
    <key>name</key>
    <string>variable.parameter.misc.css</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>match</key>
    <string>\!\s*important</string>
    <key>name</key>
    <string>keyword.other.important.css</string>
    </dict>
    </array>
    </dict>
    <key>rule-list</key>
    <dict>
    <key>begin</key>
    <string>\{</string>
    <key>beginCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.property-list.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>(?=\s*\})</string>
    <key>name</key>
    <string>meta.property-list.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#comment-block</string>
    </dict>
    <dict>
    <key>begin</key>
    <string>(?&lt;![-a-z])(?=[-a-z])</string>
    <key>end</key>
    <string>$|(?![-a-z])</string>
    <key>name</key>
    <string>meta.property-name.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>(-moz-border-radius-top|azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|box-shadow|border-radius|border-bottom-color|border-bottom-radius|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-radius|border-left-style|border-left-width|border-left|border-right-color|border-right-radius|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-radius|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index|-webkit-[-a-z]+|-moz-[-a-z]+|-o-[-a-z]+|-ms-[-a-z]+)</string>
    <key>name</key>
    <string>support.type.property-name.css</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>begin</key>
    <string>(:)\s*</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.separator.key-value.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\s*(;|(?=\}))</string>
    <key>endCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.terminator.rule.css</string>
    </dict>
    </dict>
    <key>name</key>
    <string>meta.property-value.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#property-values</string>
    </dict>
    </array>
    </dict>
    </array>
    </dict>
    <key>selector</key>
    <dict>
    <key>begin</key>
    <string>\s*(?=[:.*#a-zA-Z])</string>
    <key>end</key>
    <string>(?=[/@{)])</string>
    <key>name</key>
    <string>meta.selector.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\b</string>
    <key>name</key>
    <string>entity.name.tag.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(\.)[a-zA-Z0-9_-]+</string>
    <key>name</key>
    <string>entity.other.attribute-name.class.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(#)[a-zA-Z][a-zA-Z0-9_-]*</string>
    <key>name</key>
    <string>entity.other.attribute-name.id.css</string>
    </dict>
    <dict>
    <key>match</key>
    <string>\*</string>
    <key>name</key>
    <string>entity.name.tag.wildcard.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(:+)(after|before|first-letter|first-line|selection)\b</string>
    <key>name</key>
    <string>entity.other.attribute-name.pseudo-element.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(:)((first|last)-child|(first|last|only)-of-type|empty|root|target|first|left|right)\b</string>
    <key>name</key>
    <string>entity.other.attribute-name.pseudo-class.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(:)(checked|enabled|default|disabled|indeterminate|invalid|optional|required|valid)\b</string>
    <key>name</key>
    <string>entity.other.attribute-name.pseudo-class.ui-state.css</string>
    </dict>
    <dict>
    <key>begin</key>
    <string>((:)not)(\()</string>
    <key>beginCaptures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.other.attribute-name.pseudo-class.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    <key>3</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>\)</string>
    <key>endCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>patterns</key>
    <array>
    <dict>
    <key>include</key>
    <string>#selector</string>
    </dict>
    </array>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>entity.other.attribute-name.pseudo-class.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    <key>3</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    <key>4</key>
    <dict>
    <key>name</key>
    <string>constant.numeric.css</string>
    </dict>
    <key>5</key>
    <dict>
    <key>name</key>
    <string>punctuation.section.function.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>((:)nth-(?:(?:last-)?child|(?:last-)?of-type))(\()(\-?(?:\d+n?|n)(?:\+\d+)?|even|odd)(\))</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(:)(active|hover|link|visited|focus)\b</string>
    <key>name</key>
    <string>entity.other.attribute-name.pseudo-class.css</string>
    </dict>
    <dict>
    <key>captures</key>
    <dict>
    <key>1</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.entity.css</string>
    </dict>
    <key>2</key>
    <dict>
    <key>name</key>
    <string>entity.other.attribute-name.attribute.css</string>
    </dict>
    <key>3</key>
    <dict>
    <key>name</key>
    <string>punctuation.separator.operator.css</string>
    </dict>
    <key>4</key>
    <dict>
    <key>name</key>
    <string>string.unquoted.attribute-value.css</string>
    </dict>
    <key>5</key>
    <dict>
    <key>name</key>
    <string>string.quoted.double.attribute-value.css</string>
    </dict>
    <key>6</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.string.begin.css</string>
    </dict>
    <key>7</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.string.end.css</string>
    </dict>
    </dict>
    <key>match</key>
    <string>(?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?&gt;(['"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])</string>
    <key>name</key>
    <string>meta.attribute-selector.css</string>
    </dict>
    </array>
    </dict>
    <key>string-double</key>
    <dict>
    <key>begin</key>
    <string>"</string>
    <key>beginCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.string.begin.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>"</string>
    <key>endCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.string.end.css</string>
    </dict>
    </dict>
    <key>name</key>
    <string>string.quoted.double.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>\\.</string>
    <key>name</key>
    <string>constant.character.escape.css</string>
    </dict>
    </array>
    </dict>
    <key>string-single</key>
    <dict>
    <key>begin</key>
    <string>'</string>
    <key>beginCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.string.begin.css</string>
    </dict>
    </dict>
    <key>end</key>
    <string>'</string>
    <key>endCaptures</key>
    <dict>
    <key>0</key>
    <dict>
    <key>name</key>
    <string>punctuation.definition.string.end.css</string>
    </dict>
    </dict>
    <key>name</key>
    <string>string.quoted.single.css</string>
    <key>patterns</key>
    <array>
    <dict>
    <key>match</key>
    <string>\\.</string>
    <key>name</key>
    <string>constant.character.escape.css</string>
    </dict>
    </array>
    </dict>
    </dict>
    <key>scopeName</key>
    <string>source.css</string>
    <key>uuid</key>
    <string>69AA0917-B7BB-11D9-A7E2-000D93C8BE28</string>
    </dict>
    </plist>
    346 changes: 0 additions & 346 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,346 +0,0 @@
    { scopeName = 'source.css';
    comment = '';
    fileTypes = ( 'css', 'css.erb' );
    foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|\/\*\s*@group\s*.*\s*\*\/';
    foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|\/*\s*@end\s*\*\/';
    patterns = (
    { include = '#comment-block'; },
    { include = '#selector'; },
    { name = 'meta.at-rule.charset.css';
    begin = '\s*((@)charset\b)\s*';
    end = '\s*((?=;|$))';
    captures = {
    1 = { name = 'keyword.control.at-rule.charset.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    };
    patterns = (
    { include = '#string-double'; },
    { include = '#string-single'; },
    );
    },
    { name = 'meta.at-rule.import.css';
    begin = '\s*((@)import\b)\s*';
    end = '\s*((?=;|\}))';
    captures = {
    1 = { name = 'keyword.control.at-rule.import.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    };
    patterns = (
    { include = '#string-double'; },
    { include = '#string-single'; },
    { begin = '\s*(url)\s*(\()\s*';
    end = '\s*(\))\s*';
    beginCaptures = {
    1 = { name = 'support.function.url.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = (
    { name = 'variable.parameter.url.css';
    match = '[^''") \t]+';
    },
    { include = '#string-single'; },
    { include = '#string-double'; },
    );
    },
    { include = '#media-query-list'; },
    );
    },
    { name = 'meta.at-rule.font-face.css';
    begin = '^\s*((@)font-face)\s*(?=\{)';
    end = '\s*(\})';
    beginCaptures = {
    1 = { name = 'keyword.control.at-rule.font-face.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = ( { include = '#rule-list'; } );
    },
    { begin = '(?=^\s*@media\s*.*?\{)';
    end = '\s*(\})';
    endCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = (
    { name = 'meta.at-rule.media.css';
    begin = '^\s*((@)media)(?=.*?\{)';
    end = '\s*(?=\{)';
    beginCaptures = {
    1 = { name = 'keyword.control.at-rule.media.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    3 = { name = 'support.constant.media.css'; };
    };
    patterns = ( { include = '#media-query-list'; } );
    },
    { begin = '\s*(\{)';
    end = '(?=\})';
    beginCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = ( { include = '$self'; } );
    },
    );
    },
    { begin = '(?=\{)';
    end = '(\})';
    endCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = ( { include = '#rule-list'; } );
    },
    );
    repository = {
    color-values = {
    patterns = (
    { name = 'support.constant.color.w3c-standard-color-name.css';
    comment = 'http://www.w3.org/TR/CSS21/syndata.html#value-def-color';
    match = '\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b';
    },
    { name = 'invalid.deprecated.color.w3c-non-standard-color-name.css';
    comment = 'These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp';
    match = '\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b';
    },
    { begin = '(hsla?|rgba?)\s*(\()';
    end = '(\))';
    beginCaptures = {
    1 = { name = 'support.function.misc.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = (
    { name = 'constant.other.color.rgb-value.css';
    match = '(?x)\b
    (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*){2}
    (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\b)
    (\s*,\s*((0?\.[0-9]+)|[0-1]))?
    ';
    },
    { name = 'constant.other.color.rgb-percentage.css';
    match = '\b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%';
    },
    { include = '#numeric-values'; },
    );
    },
    );
    };
    comment-block = {
    name = 'comment.block.css';
    begin = '/\*';
    end = '\*/';
    captures = { 0 = { name = 'punctuation.definition.comment.css'; }; };
    };
    media-query = {
    begin = '(?i)\s*(only|not)?\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?';
    end = '\s*(?:(,)|(?=[{;]))';
    beginCaptures = {
    1 = { name = 'keyword.operator.logic.media.css'; };
    2 = { name = 'support.constant.media.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.definition.arbitrary-repitition.css'; }; };
    patterns = (
    { begin = '\s*(and)?\s*(\()\s*';
    end = '\)';
    beginCaptures = { 1 = { name = 'keyword.operator.logic.media.css'; }; };
    patterns = (
    { begin = '(?x)
    (
    ((min|max)-)?
    (
    ((device-)?(height|width|aspect-ratio))|
    (color(-index)?)|monochrome|resolution
    )
    )|grid|scan|orientation
    \s*(?=[:)])';
    end = '(:)|(?=\))';
    beginCaptures = { 0 = { name = 'support.type.property-name.media.css'; }; };
    endCaptures = { 1 = { name = 'punctuation.separator.key-value.css'; }; };
    },
    { name = 'support.constant.property-value.css';
    match = '\b(portrait|landscape|progressive|interlace)';
    },
    { match = '\s*(\d+)(/)(\d+)';
    captures = {
    1 = { name = 'constant.numeric.css'; };
    2 = { name = 'keyword.operator.arithmetic.css'; };
    3 = { name = 'constant.numeric.css'; };
    };
    },
    { include = '#numeric-values'; },
    );
    },
    );
    };
    media-query-list = {
    begin = '\s*(?=[^{;])';
    end = '\s*(?=[{;])';
    patterns = ( { include = '#media-query'; } );
    };
    numeric-values = {
    patterns = (
    { name = 'constant.other.color.rgb-value.css';
    match = '(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b';
    captures = { 1 = { name = 'punctuation.definition.constant.css'; }; };
    },
    { name = 'constant.numeric.css';
    match = '(?x)
    (?:-|\+)?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))
    ((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|s)\b|%)?
    ';
    captures = { 1 = { name = 'keyword.other.unit.css'; }; };
    },
    );
    };
    property-values = {
    patterns = (
    { name = 'support.constant.property-value.css';
    match = '\b(absolute|all(-scroll)?|always|armenian|auto|avoid|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|geometricPrecision|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|optimize(Legibility|Quality|Speed)|outset|outside|overline|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical(-(ideographic|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small|large))|painted|fill|stroke)\b';
    },
    { name = 'support.constant.font-name.css';
    match = '(\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\b)';
    },
    { include = '#numeric-values'; },
    { include = '#color-values'; },
    { include = '#string-double'; },
    { include = '#string-single'; },
    { begin = '(rect)\s*(\()';
    end = '(\))';
    beginCaptures = {
    1 = { name = 'support.function.misc.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = ( { include = '#numeric-values'; } );
    },
    { begin = '(format|local|url|attr|counter|counters)\s*(\()';
    end = '(\))';
    beginCaptures = {
    1 = { name = 'support.function.misc.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = (
    { include = '#string-single'; },
    { include = '#string-double'; },
    { name = 'variable.parameter.misc.css';
    match = '[^''") \t]+';
    },
    );
    },
    { name = 'keyword.other.important.css';
    match = '\!\s*important';
    },
    );
    };
    rule-list = {
    name = 'meta.property-list.css';
    begin = '\{';
    end = '(?=\s*\})';
    beginCaptures = { 0 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = (
    { include = '#comment-block'; },
    { name = 'meta.property-name.css';
    begin = '(?<![-a-z])(?=[-a-z])';
    end = '$|(?![-a-z])';
    patterns = (
    { name = 'support.type.property-name.css';
    match = '\b(-webkit-[A-Za-z]+|-moz-[A-Za-z]+|-o-[A-Za-z]+|-ms-[A-Za-z]+|azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|box-shadow|border-radius|border-bottom-color|border-bottom-radius|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-radius|border-left-style|border-left-width|border-left|border-right-color|border-right-radius|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-radius|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index)\b';
    },
    );
    },
    { name = 'meta.property-value.css';
    begin = '(:)\s*';
    end = '\s*(;|(?=\}))';
    beginCaptures = { 1 = { name = 'punctuation.separator.key-value.css'; }; };
    endCaptures = { 1 = { name = 'punctuation.terminator.rule.css'; }; };
    patterns = ( { include = '#property-values'; } );
    },
    );
    };
    selector = {
    name = 'meta.selector.css';
    begin = '\s*(?=[:.*#a-zA-Z])';
    end = '(?=[/@{)])';
    patterns = (
    { name = 'entity.name.tag.css';
    match = '\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\b';
    },
    { name = 'entity.other.attribute-name.class.css';
    match = '(\.)[a-zA-Z0-9_-]+';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.other.attribute-name.id.css';
    match = '(#)[a-zA-Z][a-zA-Z0-9_-]*';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.name.tag.wildcard.css';
    match = '\*';
    },
    { name = 'entity.other.attribute-name.pseudo-element.css';
    match = '(:+)(after|before|first-letter|first-line|selection)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.other.attribute-name.pseudo-class.css';
    match = '(:)((first|last)-child|(first|last|only)-of-type|empty|root|target|first|left|right)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.other.attribute-name.pseudo-class.ui-state.css';
    match = '(:)(checked|enabled|default|disabled|indeterminate|invalid|optional|required|valid)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { begin = '((:)not)(\()';
    end = '\)';
    beginCaptures = {
    1 = { name = 'entity.other.attribute-name.pseudo-class.css'; };
    2 = { name = 'punctuation.definition.entity.css'; };
    3 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 0 = { name = 'punctuation.section.function.css'; }; };
    patterns = ( { include = '#selector'; } );
    },
    { match = '((:)nth-(?:(?:last-)?child|(?:last-)?of-type))(\()(\-?(?:\d+n?|n)(?:\+\d+)?|even|odd)(\))';
    captures = {
    1 = { name = 'entity.other.attribute-name.pseudo-class.css'; };
    2 = { name = 'punctuation.definition.entity.css'; };
    3 = { name = 'punctuation.section.function.css'; };
    4 = { name = 'constant.numeric.css'; };
    5 = { name = 'punctuation.section.function.css'; };
    };
    },
    { name = 'entity.other.attribute-name.pseudo-class.css';
    match = '(:)(active|hover|link|visited|focus)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'meta.attribute-selector.css';
    match = '(?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?>([''"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])';
    captures = {
    1 = { name = 'punctuation.definition.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'; };
    };
    },
    );
    };
    string-double = {
    name = 'string.quoted.double.css';
    begin = '"';
    end = '"';
    beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.css'; }; };
    endCaptures = { 0 = { name = 'punctuation.definition.string.end.css'; }; };
    patterns = (
    { name = 'constant.character.escape.css';
    match = '\\.';
    },
    );
    };
    string-single = {
    name = 'string.quoted.single.css';
    begin = "'";
    end = "'";
    beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.css'; }; };
    endCaptures = { 0 = { name = 'punctuation.definition.string.end.css'; }; };
    patterns = (
    { name = 'constant.character.escape.css';
    match = '\\.';
    },
    );
    };
    };
    }
  2. digicase renamed this gist Mar 6, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion CSS.plist → gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -237,7 +237,7 @@
    end = '$|(?![-a-z])';
    patterns = (
    { name = 'support.type.property-name.css';
    match = '\b(-moz-border-radius|-webkit-border-radius|azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|box-shadow|border-radius|border-bottom-color|border-bottom-radius|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-radius|border-left-style|border-left-width|border-left|border-right-color|border-right-radius|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-radius|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|-moz-border-radius|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index)\b';
    match = '\b(-webkit-[A-Za-z]+|-moz-[A-Za-z]+|-o-[A-Za-z]+|-ms-[A-Za-z]+|azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|box-shadow|border-radius|border-bottom-color|border-bottom-radius|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-radius|border-left-style|border-left-width|border-left|border-right-color|border-right-radius|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-radius|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index)\b';
    },
    );
    },
  3. digicase created this gist Mar 6, 2012.
    346 changes: 346 additions & 0 deletions CSS.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,346 @@
    { scopeName = 'source.css';
    comment = '';
    fileTypes = ( 'css', 'css.erb' );
    foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))|\/\*\s*@group\s*.*\s*\*\/';
    foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|\/*\s*@end\s*\*\/';
    patterns = (
    { include = '#comment-block'; },
    { include = '#selector'; },
    { name = 'meta.at-rule.charset.css';
    begin = '\s*((@)charset\b)\s*';
    end = '\s*((?=;|$))';
    captures = {
    1 = { name = 'keyword.control.at-rule.charset.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    };
    patterns = (
    { include = '#string-double'; },
    { include = '#string-single'; },
    );
    },
    { name = 'meta.at-rule.import.css';
    begin = '\s*((@)import\b)\s*';
    end = '\s*((?=;|\}))';
    captures = {
    1 = { name = 'keyword.control.at-rule.import.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    };
    patterns = (
    { include = '#string-double'; },
    { include = '#string-single'; },
    { begin = '\s*(url)\s*(\()\s*';
    end = '\s*(\))\s*';
    beginCaptures = {
    1 = { name = 'support.function.url.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = (
    { name = 'variable.parameter.url.css';
    match = '[^''") \t]+';
    },
    { include = '#string-single'; },
    { include = '#string-double'; },
    );
    },
    { include = '#media-query-list'; },
    );
    },
    { name = 'meta.at-rule.font-face.css';
    begin = '^\s*((@)font-face)\s*(?=\{)';
    end = '\s*(\})';
    beginCaptures = {
    1 = { name = 'keyword.control.at-rule.font-face.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = ( { include = '#rule-list'; } );
    },
    { begin = '(?=^\s*@media\s*.*?\{)';
    end = '\s*(\})';
    endCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = (
    { name = 'meta.at-rule.media.css';
    begin = '^\s*((@)media)(?=.*?\{)';
    end = '\s*(?=\{)';
    beginCaptures = {
    1 = { name = 'keyword.control.at-rule.media.css'; };
    2 = { name = 'punctuation.definition.keyword.css'; };
    3 = { name = 'support.constant.media.css'; };
    };
    patterns = ( { include = '#media-query-list'; } );
    },
    { begin = '\s*(\{)';
    end = '(?=\})';
    beginCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = ( { include = '$self'; } );
    },
    );
    },
    { begin = '(?=\{)';
    end = '(\})';
    endCaptures = { 1 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = ( { include = '#rule-list'; } );
    },
    );
    repository = {
    color-values = {
    patterns = (
    { name = 'support.constant.color.w3c-standard-color-name.css';
    comment = 'http://www.w3.org/TR/CSS21/syndata.html#value-def-color';
    match = '\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b';
    },
    { name = 'invalid.deprecated.color.w3c-non-standard-color-name.css';
    comment = 'These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp';
    match = '\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b';
    },
    { begin = '(hsla?|rgba?)\s*(\()';
    end = '(\))';
    beginCaptures = {
    1 = { name = 'support.function.misc.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = (
    { name = 'constant.other.color.rgb-value.css';
    match = '(?x)\b
    (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*){2}
    (0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\b)
    (\s*,\s*((0?\.[0-9]+)|[0-1]))?
    ';
    },
    { name = 'constant.other.color.rgb-percentage.css';
    match = '\b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%';
    },
    { include = '#numeric-values'; },
    );
    },
    );
    };
    comment-block = {
    name = 'comment.block.css';
    begin = '/\*';
    end = '\*/';
    captures = { 0 = { name = 'punctuation.definition.comment.css'; }; };
    };
    media-query = {
    begin = '(?i)\s*(only|not)?\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?';
    end = '\s*(?:(,)|(?=[{;]))';
    beginCaptures = {
    1 = { name = 'keyword.operator.logic.media.css'; };
    2 = { name = 'support.constant.media.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.definition.arbitrary-repitition.css'; }; };
    patterns = (
    { begin = '\s*(and)?\s*(\()\s*';
    end = '\)';
    beginCaptures = { 1 = { name = 'keyword.operator.logic.media.css'; }; };
    patterns = (
    { begin = '(?x)
    (
    ((min|max)-)?
    (
    ((device-)?(height|width|aspect-ratio))|
    (color(-index)?)|monochrome|resolution
    )
    )|grid|scan|orientation
    \s*(?=[:)])';
    end = '(:)|(?=\))';
    beginCaptures = { 0 = { name = 'support.type.property-name.media.css'; }; };
    endCaptures = { 1 = { name = 'punctuation.separator.key-value.css'; }; };
    },
    { name = 'support.constant.property-value.css';
    match = '\b(portrait|landscape|progressive|interlace)';
    },
    { match = '\s*(\d+)(/)(\d+)';
    captures = {
    1 = { name = 'constant.numeric.css'; };
    2 = { name = 'keyword.operator.arithmetic.css'; };
    3 = { name = 'constant.numeric.css'; };
    };
    },
    { include = '#numeric-values'; },
    );
    },
    );
    };
    media-query-list = {
    begin = '\s*(?=[^{;])';
    end = '\s*(?=[{;])';
    patterns = ( { include = '#media-query'; } );
    };
    numeric-values = {
    patterns = (
    { name = 'constant.other.color.rgb-value.css';
    match = '(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b';
    captures = { 1 = { name = 'punctuation.definition.constant.css'; }; };
    },
    { name = 'constant.numeric.css';
    match = '(?x)
    (?:-|\+)?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))
    ((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|s)\b|%)?
    ';
    captures = { 1 = { name = 'keyword.other.unit.css'; }; };
    },
    );
    };
    property-values = {
    patterns = (
    { name = 'support.constant.property-value.css';
    match = '\b(absolute|all(-scroll)?|always|armenian|auto|avoid|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|geometricPrecision|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|optimize(Legibility|Quality|Speed)|outset|outside|overline|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical(-(ideographic|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small|large))|painted|fill|stroke)\b';
    },
    { name = 'support.constant.font-name.css';
    match = '(\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\b)';
    },
    { include = '#numeric-values'; },
    { include = '#color-values'; },
    { include = '#string-double'; },
    { include = '#string-single'; },
    { begin = '(rect)\s*(\()';
    end = '(\))';
    beginCaptures = {
    1 = { name = 'support.function.misc.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = ( { include = '#numeric-values'; } );
    },
    { begin = '(format|local|url|attr|counter|counters)\s*(\()';
    end = '(\))';
    beginCaptures = {
    1 = { name = 'support.function.misc.css'; };
    2 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 1 = { name = 'punctuation.section.function.css'; }; };
    patterns = (
    { include = '#string-single'; },
    { include = '#string-double'; },
    { name = 'variable.parameter.misc.css';
    match = '[^''") \t]+';
    },
    );
    },
    { name = 'keyword.other.important.css';
    match = '\!\s*important';
    },
    );
    };
    rule-list = {
    name = 'meta.property-list.css';
    begin = '\{';
    end = '(?=\s*\})';
    beginCaptures = { 0 = { name = 'punctuation.section.property-list.css'; }; };
    patterns = (
    { include = '#comment-block'; },
    { name = 'meta.property-name.css';
    begin = '(?<![-a-z])(?=[-a-z])';
    end = '$|(?![-a-z])';
    patterns = (
    { name = 'support.type.property-name.css';
    match = '\b(-moz-border-radius|-webkit-border-radius|azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|box-shadow|border-radius|border-bottom-color|border-bottom-radius|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-radius|border-left-style|border-left-width|border-left|border-right-color|border-right-radius|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-radius|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|-moz-border-radius|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index)\b';
    },
    );
    },
    { name = 'meta.property-value.css';
    begin = '(:)\s*';
    end = '\s*(;|(?=\}))';
    beginCaptures = { 1 = { name = 'punctuation.separator.key-value.css'; }; };
    endCaptures = { 1 = { name = 'punctuation.terminator.rule.css'; }; };
    patterns = ( { include = '#property-values'; } );
    },
    );
    };
    selector = {
    name = 'meta.selector.css';
    begin = '\s*(?=[:.*#a-zA-Z])';
    end = '(?=[/@{)])';
    patterns = (
    { name = 'entity.name.tag.css';
    match = '\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\b';
    },
    { name = 'entity.other.attribute-name.class.css';
    match = '(\.)[a-zA-Z0-9_-]+';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.other.attribute-name.id.css';
    match = '(#)[a-zA-Z][a-zA-Z0-9_-]*';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.name.tag.wildcard.css';
    match = '\*';
    },
    { name = 'entity.other.attribute-name.pseudo-element.css';
    match = '(:+)(after|before|first-letter|first-line|selection)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.other.attribute-name.pseudo-class.css';
    match = '(:)((first|last)-child|(first|last|only)-of-type|empty|root|target|first|left|right)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'entity.other.attribute-name.pseudo-class.ui-state.css';
    match = '(:)(checked|enabled|default|disabled|indeterminate|invalid|optional|required|valid)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { begin = '((:)not)(\()';
    end = '\)';
    beginCaptures = {
    1 = { name = 'entity.other.attribute-name.pseudo-class.css'; };
    2 = { name = 'punctuation.definition.entity.css'; };
    3 = { name = 'punctuation.section.function.css'; };
    };
    endCaptures = { 0 = { name = 'punctuation.section.function.css'; }; };
    patterns = ( { include = '#selector'; } );
    },
    { match = '((:)nth-(?:(?:last-)?child|(?:last-)?of-type))(\()(\-?(?:\d+n?|n)(?:\+\d+)?|even|odd)(\))';
    captures = {
    1 = { name = 'entity.other.attribute-name.pseudo-class.css'; };
    2 = { name = 'punctuation.definition.entity.css'; };
    3 = { name = 'punctuation.section.function.css'; };
    4 = { name = 'constant.numeric.css'; };
    5 = { name = 'punctuation.section.function.css'; };
    };
    },
    { name = 'entity.other.attribute-name.pseudo-class.css';
    match = '(:)(active|hover|link|visited|focus)\b';
    captures = { 1 = { name = 'punctuation.definition.entity.css'; }; };
    },
    { name = 'meta.attribute-selector.css';
    match = '(?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?>([''"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])';
    captures = {
    1 = { name = 'punctuation.definition.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'; };
    };
    },
    );
    };
    string-double = {
    name = 'string.quoted.double.css';
    begin = '"';
    end = '"';
    beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.css'; }; };
    endCaptures = { 0 = { name = 'punctuation.definition.string.end.css'; }; };
    patterns = (
    { name = 'constant.character.escape.css';
    match = '\\.';
    },
    );
    };
    string-single = {
    name = 'string.quoted.single.css';
    begin = "'";
    end = "'";
    beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.css'; }; };
    endCaptures = { 0 = { name = 'punctuation.definition.string.end.css'; }; };
    patterns = (
    { name = 'constant.character.escape.css';
    match = '\\.';
    },
    );
    };
    };
    }