swc/ecmascript/visit/scripts/update.sh

13 lines
306 B
Bash
Raw Normal View History

2020-04-02 12:38:13 +03:00
#!/usr/bin/env bash
for filename in ../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