Skip to content

Commit d96067d

Browse files
committed
Add PostCSS lang & syntax. Fix #50
1 parent 6f2b388 commit d96067d

File tree

7 files changed

+1784
-1
lines changed

7 files changed

+1784
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- Syntax highlighting for coffee and postcss. #50 and #56.
2+
- Various grammar fixes.
3+
14
### 0.3.6 | 2017-02-21
25

36
- Support nested `<template>`. #48.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can [open an issue](https://github.com/octref/vetur/issues/new) for bugs or
1111
- Linting for css/scss/less/js
1212
- Syntax highlighting for:
1313
- html/jade/pug
14-
- css/sass/scss/less/stylus
14+
- css/sass/scss/less/stylus/postcss
1515
- js/ts/coffee
1616
- Embedded snippet support
1717
- Use vue snippet outside all regions
@@ -83,6 +83,7 @@ See [CONTRIBUTING.md](https://github.com/octref/vetur/blob/master/CONTRIBUTING.m
8383
- Logo from [vuejs/vuejs.org](https://github.com/vuejs/vuejs.org)
8484
- Grammar based on [vuejs/vue-syntax-highlight](https://github.com/vuejs/vue-syntax-highlight)
8585
- Sass grammar based on [P233/Syntax-highlighting-for-Sass](https://github.com/P233/Syntax-highlighting-for-Sass)
86+
- PostCSS grammar based on [azat-io/atom-language-postcss](https://github.com/azat-io/atom-language-postcss)
8687
- Language Server based on VSCode's [html extension](https://github.com/Microsoft/vscode/tree/master/extensions/html)
8788

8889
## License

languages/postcss.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": [ "/*", "*/" ]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
["{", "}"],
17+
["[", "]"],
18+
["(", ")"],
19+
["\"", "\""],
20+
["'", "'"]
21+
],
22+
// symbols that that can be used to surround a selection
23+
"surroundingPairs": [
24+
["{", "}"],
25+
["[", "]"],
26+
["(", ")"],
27+
["\"", "\""],
28+
["'", "'"]
29+
]
30+
}

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
"sass"
5757
],
5858
"configuration": "./languages/sass.json"
59+
},
60+
{
61+
"id": "postcss",
62+
"aliases": [
63+
"PostCSS",
64+
"POSTCSS"
65+
],
66+
"configuration": "./languages/postcss.json"
5967
}
6068
],
6169
"grammars": [
@@ -72,6 +80,7 @@
7280
"source.css.sass": "sass",
7381
"source.css.scss": "scss",
7482
"source.css.less": "less",
83+
"source.css.postcss": "postcss",
7584
"source.stylus": "stylus",
7685
"source.js": "javascript",
7786
"source.ts": "typescript",
@@ -83,6 +92,11 @@
8392
"scopeName": "source.css.sass",
8493
"path": "./syntaxes/sass.json"
8594
},
95+
{
96+
"language": "postcss",
97+
"scopeName": "source.css.postcss",
98+
"path": "./syntaxes/postcss.json"
99+
},
86100
{
87101
"language": "vue-html",
88102
"scopeName": "text.vue-html",

0 commit comments

Comments
 (0)