Permalink
Browse files

adding PHP eval support

  • Loading branch information...
jaredly committed Jul 12, 2010
1 parent 945c9e2 commit 6e1dd327464c0ab5e76df3154343887c098fa73d
Showing with 4 additions and 1 deletion.
  1. +4 −1 vim_phpdebug/subwindows.py
@@ -82,7 +82,10 @@ def set_result(self, line, node):
l = len(self.results.buffer)
for a in range(len(self.results.buffer)-1, line):
self.results.buffer.append('')
- self.results.buffer[line] = str(get_text(node))
+ res = str(get_child_text(node, 'property'))
+ if not res:
+ res = str(get_text(node))
+ self.results.buffer[line] = res
def get_text(node):
if not hasattr(node.firstChild, 'data'):

0 comments on commit 6e1dd32

Please sign in to comment.