Commit e9b020d
authored
feat: move script parsing to vite_shell and add source spans (#55)
### TL;DR
Migrate shell parsing functionality from `vite_task` to a dedicated `vite_shell` crate, improving shell command parsing with better location tracking.
### What changed?
- Moved `TaskParsedCommand` and shell parsing logic from `vite_task/cmd.rs` to the `vite_shell` crate
- Enhanced the shell parser to track source locations of commands in addition to parsing them
- Updated `try_parse_as_and_list` to return both parsed commands and their source ranges
- Updated the workspace to use the new shell parsing functionality
- Pinned to a specific git revision of `brush-parser` to fix a bug with AST node locations1 parent 8f14a91 commit e9b020d
File tree
11 files changed
+304
-604
lines changed- crates
- vite_shell
- src
- vite_task
- src
- config
11 files changed
+304
-604
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments