Skip to content

Commit

Permalink
Treat .postcss files as CSS (#19416)
Browse files Browse the repository at this point in the history
This PR makes it so `.postcss` files are recognized as CSS.

The `tree-sitter-css` grammar has basic support for PostCSS:
tree-sitter/tree-sitter-css#17 (comment).

Closes #18051.

Release Notes:

- `.postcss` files are now recognized as CSS.
  • Loading branch information
maxdeviant authored Oct 18, 2024
1 parent 9e27b66 commit 35f2f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/icons/file_icons/file_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"php": "php",
"plist": "template",
"png": "image",
"postcss": "css",
"ppt": "document",
"pptx": "document",
"prettierignore": "prettier",
Expand Down
2 changes: 1 addition & 1 deletion crates/languages/src/css/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "CSS"
grammar = "css"
path_suffixes = ["css"]
path_suffixes = ["css", "postcss"]
autoclose_before = ";:.,=}])>"
brackets = [
{ start = "{", end = "}", close = true, newline = true },
Expand Down

0 comments on commit 35f2f2a

Please sign in to comment.