Skip to content

Commit 1f263b9

Browse files
fix string bug with if statements
1 parent 4d4338f commit 1f263b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bashparser.egg-info/PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: bashparser
3-
Version: 0.3
3+
Version: 0.5
44
Summary: A framework for manipulating and analysing bash scripts
55
Home-page: https://github.com/BlankCanvasStudio/bashparse
66
Author: Spencer Stingley

bashparser/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, root):
2020
self.no_children = {'operator', 'reservedword', 'pipe', 'parameter', 'tilde', 'heredoc'}
2121
self.parts_children = {'list', 'pipeline', 'if', 'for', 'while', 'until', 'command', 'function', 'word', 'assignment'}
2222
self.command_children = {'commandsubstitution', 'processsubstitution'}
23-
self.passable_nodes = {'command', 'list', 'compound', 'for', 'parameter', 'function', 'pipeline'}
23+
self.passable_nodes = {'command', 'list', 'compound', 'for', 'parameter', 'function', 'pipeline', 'if'}
2424
self.list_children = {}
2525
self.contains_variable_text = {'word', 'assignment'}
2626

0 commit comments

Comments
 (0)