Grammar update

This commit is contained in:
Arfon Smith
2016-02-29 07:53:48 -07:00
parent f14ae8e51b
commit 8fea8a0b47
21 changed files with 855 additions and 0 deletions
@@ -0,0 +1,2 @@
.DS_Store
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[Book $1 - ${2:Title}
]]></content>
<tabTrigger>book</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[Chapter $1 - ${2:Title}
]]></content>
<tabTrigger>chapter</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
${1:DoorName} is a door. $1 is ${2:Direction} from ${3:Room}.
]]></content>
<tabTrigger>door</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,34 @@
{ "name": "Inform7",
"scopeName": "source.Inform7",
"fileTypes": ["i7x"],
"patterns": [
{ "name": "keyword.control.Inform7",
"match": "\\b(Include|Release)\\b"
},
{ "name" : "comment.block.Inform7",
"begin" : "\\[",
"end" : "\\]",
"comment" : "All comments in Inform7 are delimited this way."
},
{ "name" : "string.quoted.double.Inform7",
"begin" : "\"",
"end" : "\"",
"patterns": [
{ "name" : "keyword.operator.Inform7",
"begin" : "\\[",
"end" : "\\]",
"comment" : "For logic inside of strings."
}
]
},
{ "name" : "storage.type.Inform7",
"match" : "(Volume|Book|Chapter|Part|Section|Table)\\s+\\d?\\s+-?\\s+((?:\\w|\\s|-)*)",
"comment": "Matches headings for major sections in Inform7"
},
{ "name": "constant.numeric.Inform7",
"match": "([0-9])+",
"comment":"Gotta call out the numbers!"
}
],
"uuid": "0c4cbdee-beb7-4ea6-af56-27246d479373"
}
+74
View File
@@ -0,0 +1,74 @@
<?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>fileTypes</key>
<array>
<string>i7x</string>
<string>inform</string>
<string>ni</string>
</array>
<key>name</key>
<string>Inform7</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b(Include|Release)\b</string>
<key>name</key>
<string>keyword.control.Inform7</string>
</dict>
<dict>
<key>begin</key>
<string>\[</string>
<key>comment</key>
<string>All comments in Inform7 are delimited this way.</string>
<key>end</key>
<string>\]</string>
<key>name</key>
<string>comment.block.Inform7</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>end</key>
<string>"</string>
<key>name</key>
<string>string.quoted.double.Inform7</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>\[</string>
<key>comment</key>
<string>For logic inside of strings.</string>
<key>end</key>
<string>\]</string>
<key>name</key>
<string>keyword.operator.Inform7</string>
</dict>
</array>
</dict>
<dict>
<key>comment</key>
<string>Matches headings for major sections in Inform7</string>
<key>match</key>
<string>(Volume|Book|Chapter|Part|Section|Table)\s+\d?\s+-?\s+((?:\w|\s|-)*)</string>
<key>name</key>
<string>storage.type.Inform7</string>
</dict>
<dict>
<key>comment</key>
<string>Gotta call out the numbers!</string>
<key>match</key>
<string>([0-9])+</string>
<key>name</key>
<string>constant.numeric.Inform7</string>
</dict>
</array>
<key>scopeName</key>
<string>source.Inform7</string>
<key>uuid</key>
<string>0c4cbdee-beb7-4ea6-af56-27246d479373</string>
</dict>
</plist>
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
$1 is a portable thing in ${2:Room} ${3:ShortDescription}
The description of $1 is ${4:Description}
]]></content>
<tabTrigger>object</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[Part $1 - ${2:Title}
]]></content>
<tabTrigger>part</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
${1:RoomName} is a room in ${2:Region}. "${3:Description}"
]]></content>
<tabTrigger>room</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
${1:SceneName} is a Scene.
$1 begins when $2 .
$1 ends when $3 .
When $1 begins: $4 .
When $1 ends: $5 .
]]></content>
<tabTrigger>scene</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[Section $1 - ${2:Title}
]]></content>
<tabTrigger>section</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[Volume $1 - ${2:Title}
]]></content>
<tabTrigger>volume</tabTrigger>
<scope>source.Inform7</scope>
</snippet>
+21
View File
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Nate Dickson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+8
View File
@@ -0,0 +1,8 @@
#Inform7 Package for Sublime Text 2
This package has a lot of little files that make Inform7 easier to edit in Sublime Text 2. that's why it's called what it is, you see.
##Usage
Grab the zip file, unzip it, and put it in your ```Packages``` Directory.
That's pretty much it. Open an ```i7x``` file in Sublime Text 2 and it'll be all highlighted and there's a bunch of snippets you can use and all that.
##Want to submit a pull request for this readme file?
Please, please do.
@@ -0,0 +1,47 @@
<?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>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
file = ENV["TM_FILEPATH"]
target = file.sub(/\.less$/, ".css")
system("lessc \"#{file}\" \"#{target}\"")
puts "Compiled CSS to '#{target}'"</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>@b</string>
<key>name</key>
<string>Save to CSS</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>toolTip</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>lessc</string>
<key>locations</key>
<array>
<string>/opt/local/bin/lessc</string>
<string>/usr/local/bin/lessc</string>
</array>
</dict>
</array>
<key>scope</key>
<string>source.css.less</string>
<key>uuid</key>
<string>78788223-5E5E-434E-98BE-17BCDF600611</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
@@ -0,0 +1,47 @@
<?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>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/usr/bin/env ruby18
file = ENV["TM_FILEPATH"]
target = file.sub(/\.less$/, ".css")
system("lessc -x \"#{file}\" \"#{target}\"")
puts "Compiled Minified CSS to '#{target}'"</string>
<key>input</key>
<string>document</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>~@b</string>
<key>name</key>
<string>Save to Minified CSS</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>toolTip</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>lessc</string>
<key>locations</key>
<array>
<string>/opt/local/bin/lessc</string>
<string>/usr/local/bin/lessc</string>
</array>
</dict>
</array>
<key>scope</key>
<string>source.css.less</string>
<key>uuid</key>
<string>448D3A8D-260E-4949-BA33-654886ECDCAF</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
@@ -0,0 +1,38 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env php
&lt;?php
$path = getenv('TM_DROPPED_FILE');
$path_parts = pathinfo($path);
$info = getimagesize($path);
list($width, $height) = $info;
$mime = $info['mime'];
$contents = base64_encode(file_get_contents($path));
echo "@gfx-{$path_parts['filename']}: \"data:{$mime};base64,{$contents}\";\n";
echo "@gfx-{$path_parts['filename']}-width: {$width}px;\n";
echo "@gfx-{$path_parts['filename']}-height: {$height}px;";</string>
<key>draggedFileExtensions</key>
<array>
<string>png</string>
<string>jpeg</string>
<string>jpg</string>
<string>gif</string>
</array>
<key>input</key>
<string>selection</string>
<key>name</key>
<string>Insert inline Image</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.css.less</string>
<key>uuid</key>
<string>7B0CA307-CC1C-4EE2-9F63-4825800ACDA7</string>
</dict>
</plist>
@@ -0,0 +1,36 @@
<?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>name</key>
<string>Comments</string>
<key>scope</key>
<string>source.css.less</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string>// </string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_START_2</string>
<key>value</key>
<string>/* </string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_END_2</string>
<key>value</key>
<string> */</string>
</dict>
</array>
</dict>
<key>uuid</key>
<string>D0CC551B-751D-4A7C-A738-2513E3C7F285</string>
</dict>
</plist>
+25
View File
@@ -0,0 +1,25 @@
# Installation
You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you.
# License (MIT)
Copyright (c) 2010 Scott Kyle and Rasmus Andersson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+434
View File
@@ -0,0 +1,434 @@
<?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>LeSS</string>
<key>fileTypes</key>
<array>
<string>less</string>
</array>
<key>foldingStartMarker</key>
<string>/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))</string>
<key>foldingStopMarker</key>
<string>(?&lt;!\*)\*\*/|^\s*\}</string>
<key>keyEquivalent</key>
<string>^~L</string>
<key>name</key>
<string>LESS</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b(a|abbr|acronym|address|applet|article|area|audio|video|b|base|big|blockquote|body|br|button|caption|canvas|center|cite|code|col|colgroup|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figure|figcaption|form|frame|frameset|(h[1-6])|head|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|meta|menu|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|q|ruby|s|samp|script|select|small|span|strike|strong|style|sub|sup|summary|svg|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var|header|section|footer|aside|hgroup|time)\b</string>
<key>name</key>
<string>keyword.control.html.elements</string>
</dict>
<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.escaped.css</string>
</dict>
</array>
</dict>
<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.escaped.css</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.attribute-name.class.css</string>
</dict>
</dict>
<key>match</key>
<string>(\.[a-zA-Z0-9_-]+)</string>
</dict>
<dict>
<key>begin</key>
<string>url\(</string>
<key>contentName</key>
<string>variable.parameter.url</string>
<key>end</key>
<string>\)</string>
<key>name</key>
<string>support.function.any-method.builtin.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.rgb-value.css</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>entity.other.attribute-name.id</string>
</dict>
</dict>
<key>match</key>
<string>#[a-zA-Z0-9_:\(\)-]+</string>
<key>name</key>
<string>meta.selector.css</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.begin.css</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.end.css</string>
</dict>
</dict>
<key>name</key>
<string>comment.block.css</string>
</dict>
<dict>
<key>match</key>
<string>(-|\+)?\s*[0-9]+(\.[0-9]+)?</string>
<key>name</key>
<string>constant.numeric.css</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;=[\d])(px|pt|cm|mm|in|em|ex|pc)\b|%</string>
<key>name</key>
<string>keyword.other.unit.css</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.attribute-name.pseudo-element.css</string>
</dict>
</dict>
<key>match</key>
<string>(:+(after|before|not|last-child|nth-of-type|nth-child|first-child|first-letter|first-line|selection|root))</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.attribute-name.pseudo-class.css</string>
</dict>
</dict>
<key>match</key>
<string>(:+(active|hover|link|visited|focus))</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>
<dict>
<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>match</key>
<string>^\s*((@)import\b)</string>
<key>name</key>
<string>meta.at-rule.import.css</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.type.property-name.css.vendor</string>
</dict>
</dict>
<key>match</key>
<string>(-(?:webkit|moz|khtml|o|icab|ms)-(?:background-size|border-radius|box-shadow|opacity|border-image))\s*:</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.type.property-name.css</string>
</dict>
</dict>
<key>match</key>
<string>\b(azimuth|background-attachment|background-color|background-clip|background-image|background-position|background-repeat|background-size|background|behavior|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-style|border-left-width|border-left|border-right-color|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-style|border-top-width|border-top|border-width|border-radius|border|box-shadow|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|filter|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|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|position|pre-wrap|quotes|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|stress|table-layout|text-align|text-decoration|text-indent|text-shadow|text-transform|top|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-spacing|word-wrap|z-index|zoom)</string>
</dict>
<dict>
<key>match</key>
<string>\b(absolute|all-scroll|always|auto|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|col-resize|collapse|crosshair|dashed|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|groove|hand|help|hidden|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|keep-all|left|lighter|line-edge|line-through|line|linear|list-item|loose|lower-alpha|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|outset|outside|overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-roman|uppercase|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|padding-box)\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>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>match</key>
<string>\b(saturate|desaturate|lighten|darken|grayscale)\b</string>
<key>name</key>
<string>support.function.any-method.builtin.less</string>
</dict>
<dict>
<key>match</key>
<string>\b(rgb|rgba|hsl|hsla|url)\b</string>
<key>name</key>
<string>support.function.any-method.builtin.css</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.function.any-method.vendor.css</string>
</dict>
</dict>
<key>match</key>
<string>(-(?:webkit|moz|khtml|o|icab)-(?:gradient|linear-gradient))</string>
</dict>
<dict>
<key>match</key>
<string>\b(color-stop|from|to)\b</string>
<key>name</key>
<string>support.function.any-method.webkit.gradient.css</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.function.less</string>
</dict>
</dict>
<key>match</key>
<string>(\.[a-zA-Z0-9_-]+)\s*(;|\()</string>
</dict>
<dict>
<key>begin</key>
<string>(^[ \t]+)?(?=//)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.leading.less</string>
</dict>
</dict>
<key>end</key>
<string>(?!\G)</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>//</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.less</string>
</dict>
</dict>
<key>end</key>
<string>\n</string>
<key>name</key>
<string>comment.line.double-slash.less</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>@[a-zA-Z0-9_-][\w-]*</string>
<key>name</key>
<string>variable.other.less</string>
</dict>
<dict>
<key>match</key>
<string>\$|%|&amp;|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|&lt;=|&gt;=|&lt;&lt;=|&gt;&gt;=|&gt;&gt;&gt;=|&lt;&gt;|&lt;|&gt;|!|&amp;&amp;|\|\||\?\:|\*=|(?&lt;!\()/=|%=|\+=|\-=|&amp;=|\^=|\/\b</string>
<key>name</key>
<string>keyword.operator.less</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.section.property-list.begin.css</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.section.property-list.end.css</string>
</dict>
</dict>
<key>comment</key>
<string>Match empty braces to give proper ↩ action</string>
<key>match</key>
<string>(\{)(\})</string>
<key>name</key>
<string>meta.brace.curly.less</string>
</dict>
<dict>
<key>match</key>
<string>\{|\}</string>
<key>name</key>
<string>meta.brace.curly.less</string>
</dict>
<dict>
<key>match</key>
<string>\(|\)</string>
<key>name</key>
<string>meta.brace.round.less</string>
</dict>
<dict>
<key>match</key>
<string>\[|\]</string>
<key>name</key>
<string>meta.brace.square.less</string>
</dict>
</array>
<key>scopeName</key>
<string>source.css.less</string>
<key>uuid</key>
<string>9343D324-75A1-4733-A5C0-5D1D4B6182D0</string>
</dict>
</plist>
+26
View File
@@ -0,0 +1,26 @@
<?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>contactEmailRot13</key>
<string>zfurrgf@juvgrsnyyf.bet</string>
<key>contactName</key>
<string>Michael Sheets</string>
<key>description</key>
<string>Extends CSS with dynamic behavior such as variables, mixins, operations and functions.</string>
<key>mainMenu</key>
<dict>
<key>items</key>
<array>
<string>78788223-5E5E-434E-98BE-17BCDF600611</string>
<string>448D3A8D-260E-4949-BA33-654886ECDCAF</string>
</array>
<key>submenus</key>
<dict/>
</dict>
<key>name</key>
<string>LESS</string>
<key>uuid</key>
<string>D1D51EE5-E89F-4B14-8AE4-FC364E540B47</string>
</dict>
</plist>