aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-02 14:38:24 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-11-02 14:39:23 -0700
commit307dea18815ba4a06a3098edb170d7ad90708815 (patch)
treebce78eb28fa03c9939a92e08e47564afc984c988 /tools
parentd0c3c57f7b25c8d912c426e48cb5ab09cd738f65 (diff)
Changed stub convention to (foo 1 baz 2) -> foo_1_baz instead of
foo_1_baz_2, removed "smext", made some cleanup changes.
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):