Skip to content

Commit

Permalink
Add PostCSS lang & syntax. Fix #50
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Feb 22, 2017
1 parent 6f2b388 commit d96067d
Show file tree
Hide file tree
Showing 7 changed files with 1,784 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- Syntax highlighting for coffee and postcss. #50 and #56.
- Various grammar fixes.

### 0.3.6 | 2017-02-21

- Support nested `<template>`. #48.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You can [open an issue](https://github.com/octref/vetur/issues/new) for bugs or
- Linting for css/scss/less/js
- Syntax highlighting for:
- html/jade/pug
- css/sass/scss/less/stylus
- css/sass/scss/less/stylus/postcss
- js/ts/coffee
- Embedded snippet support
- Use vue snippet outside all regions
Expand Down Expand Up @@ -83,6 +83,7 @@ See [CONTRIBUTING.md](https://github.com/octref/vetur/blob/master/CONTRIBUTING.m
- Logo from [vuejs/vuejs.org](https://github.com/vuejs/vuejs.org)
- Grammar based on [vuejs/vue-syntax-highlight](https://github.com/vuejs/vue-syntax-highlight)
- Sass grammar based on [P233/Syntax-highlighting-for-Sass](https://github.com/P233/Syntax-highlighting-for-Sass)
- PostCSS grammar based on [azat-io/atom-language-postcss](https://github.com/azat-io/atom-language-postcss)
- Language Server based on VSCode's [html extension](https://github.com/Microsoft/vscode/tree/master/extensions/html)

## License
Expand Down
30 changes: 30 additions & 0 deletions languages/postcss.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
"sass"
],
"configuration": "./languages/sass.json"
},
{
"id": "postcss",
"aliases": [
"PostCSS",
"POSTCSS"
],
"configuration": "./languages/postcss.json"
}
],
"grammars": [
Expand All @@ -72,6 +80,7 @@
"source.css.sass": "sass",
"source.css.scss": "scss",
"source.css.less": "less",
"source.css.postcss": "postcss",
"source.stylus": "stylus",
"source.js": "javascript",
"source.ts": "typescript",
Expand All @@ -83,6 +92,11 @@
"scopeName": "source.css.sass",
"path": "./syntaxes/sass.json"
},
{
"language": "postcss",
"scopeName": "source.css.postcss",
"path": "./syntaxes/postcss.json"
},
{
"language": "vue-html",
"scopeName": "text.vue-html",
Expand Down

0 comments on commit d96067d

Please sign in to comment.