aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/find_action.nom7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/find_action.nom b/tools/find_action.nom
index e7e3f49..02abdbc 100755
--- a/tools/find_action.nom
+++ b/tools/find_action.nom
@@ -14,7 +14,12 @@ for %path in %files:
for file %filename in %path:
unless (%filename::matches "%.nom$") (do next %filename)
%file = (read file %filename)
- %tree = (parse %file from %filename)
+ try:
+ %tree = (parse %file from %filename)
+ ..and if it barfs:
+ say (red "\%filename failed to parse")
+ %tree = (nil)
+ unless %tree: do next %filename
%results = []
for %t in recursive %tree:
if (%t is "Action" syntax tree):