Skip to content

Commit

Permalink
feat: add support for scss files
Browse files Browse the repository at this point in the history
SCSS files use the same comments as JS files. We only need to add
scss to the supported file types.
  • Loading branch information
Rickard Natt och Dag committed Apr 13, 2023
1 parent 8c9f84d commit 9090016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut todos: Vec<Todo> = vec![];

let path = path.unwrap();
let supported_filetypes = vec!["ts", "js", "tsx", "jsx", "vue", "html"];
let supported_filetypes = vec!["ts", "js", "tsx", "jsx", "vue", "html", "scss"];
let gitignore = fs::read_to_string(".gitignore")?;
let gitignore = gitignore
.lines()
Expand Down
4 changes: 4 additions & 0 deletions test/test.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// TODO This is a todo inside a scss file
.class {
color: red;
}

0 comments on commit 9090016

Please sign in to comment.