Add PostCSS syntaxes support (#3916)

This commit is contained in:
Andrey Sitnik
2017-11-26 08:21:10 +03:00
committed by Ashe Connor
parent 7be6fb0138
commit c8ca48856b
8 changed files with 74 additions and 1 deletions

3
.gitmodules vendored
View File

@@ -889,3 +889,6 @@
[submodule "vendor/grammars/language-cwl"]
path = vendor/grammars/language-cwl
url = https://github.com/manabuishii/language-cwl
[submodule "vendor/grammars/Syntax-highlighting-for-PostCSS"]
path = vendor/grammars/Syntax-highlighting-for-PostCSS
url = https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS

View File

@@ -128,6 +128,9 @@ vendor/grammars/SublimePuppet:
- source.puppet
vendor/grammars/SublimeXtend:
- source.xtend
vendor/grammars/Syntax-highlighting-for-PostCSS:
- source.css.postcss.sugarss
- source.postcss
vendor/grammars/TLA:
- source.tla
vendor/grammars/TXL:

View File

@@ -3440,6 +3440,14 @@ Pony:
tm_scope: source.pony
ace_mode: text
language_id: 290
PostCSS:
type: markup
tm_scope: source.postcss
group: CSS
extensions:
- ".pcss"
ace_mode: text
language_id: 262764437
PostScript:
type: markup
color: "#da291c"
@@ -4427,6 +4435,14 @@ Sublime Text Config:
- ".sublime_metrics"
- ".sublime_session"
language_id: 423
SugarSS:
type: markup
tm_scope: source.css.postcss.sugarss
group: CSS
extensions:
- ".sss"
ace_mode: text
language_id: 826404698
SuperCollider:
type: programming
color: "#46390b"

View File

@@ -0,0 +1,13 @@
@define-mixin size $size {
width: $size;
}
$big: 100px;
/* Main block */
.block {
&_logo {
background: inline("./logo.png");
@mixin size $big;
}
}

View File

@@ -0,0 +1,10 @@
@define-mixin size $size
width: $size
$big: 100px
// Main block
.block
&_logo
background: inline("./logo.png")
@mixin size $big

2
vendor/README.md vendored
View File

@@ -278,6 +278,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **PLpgSQL:** [textmate/sql.tmbundle](https://github.com/textmate/sql.tmbundle)
- **PogoScript:** [featurist/PogoScript.tmbundle](https://github.com/featurist/PogoScript.tmbundle)
- **Pony:** [CausalityLtd/sublime-pony](https://github.com/CausalityLtd/sublime-pony)
- **PostCSS:** [hudochenkov/Syntax-highlighting-for-PostCSS](https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS)
- **PostScript:** [textmate/postscript.tmbundle](https://github.com/textmate/postscript.tmbundle)
- **POV-Ray SDL:** [c-lipka/language-povray](https://github.com/c-lipka/language-povray)
- **PowerShell:** [SublimeText/PowerShell](https://github.com/SublimeText/PowerShell)
@@ -350,6 +351,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **Stylus:** [billymoon/Stylus](https://github.com/billymoon/Stylus)
- **Sublime Text Config:** [atom/language-javascript](https://github.com/atom/language-javascript)
- **SubRip Text:** [314eter/atom-language-srt](https://github.com/314eter/atom-language-srt)
- **SugarSS:** [hudochenkov/Syntax-highlighting-for-PostCSS](https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS)
- **SuperCollider:** [supercollider/language-supercollider](https://github.com/supercollider/language-supercollider)
- **SVG:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle)
- **Swift:** [textmate/swift.tmbundle](https://github.com/textmate/swift.tmbundle)

View File

@@ -0,0 +1,25 @@
---
type: grammar
name: Syntax-highlighting-for-PostCSS
license: mit
---
The MIT License (MIT)
Copyright 2017 Aleks Hudochenkov <aleks@hudochenkov.com>
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.