Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
chore: snippets aren't strings (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevyor authored Dec 5, 2023
1 parent 84db376 commit a141726
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions .grit/patterns/importing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ contains or {
$fetch <: remove_import($from)
},
`class $_ extends $comp { $_ }` where {
$comp <: `Component`,
$comp <: "Component",
$source = `"React"`,
$comp <: ensure_import_from($source),
// This is just a test of bindings
$thing = `Button`,
$thing <: `Button`
}
}
```
Expand Down
1 change: 0 additions & 1 deletion .grit/patterns/imports.grit
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ pattern remove_import($from) {
},
// Handle named import
import_clause($default, name=named_imports($imports)) as $clause where {
$others = `false`,
if ($imports <: [$name]) {
if ($default <: .) {
$import => .
Expand Down

0 comments on commit a141726

Please sign in to comment.