swc/crates/swc_ecma_visit/scripts/update.sh
2021-11-10 19:00:54 +09:00

13 lines
315 B
Bash

#!/usr/bin/env bash
for filename in ../swc_ecma_ast/src/*.rs; do
# echo "$filename"
while read -r line; do
[[ "$line" =~ ^[[:space:]]*# ]] && continue
[[ "$line" =~ ^[[:space:]]*\/ ]] && continue
[[ "$line" =~ ^[[:space:]]*\/ ]] && continue
echo "$line"
done < "$filename"
done