Permalink
Browse files

Fixed a problem with Python

  • Loading branch information...
1 parent 74bd071 commit 89003c4b9c8344e6674f2ca7d936517d6c390eea @abravetti abravetti committed Jun 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 content/NST.js
View
@@ -673,19 +673,19 @@ function preg_quote(str, delimiter) {
defBlock = -1; // like not found
csBlock = -1; // like not found
csOffset = 0; //
- if ((parts = code.match(/^class\s*(.*):$/))) {
+ if ((parts = code.match(/^class \s*(.*):$/))) {
defBlock = indent; // matched class
this.text = parts[1];
this.type = TYPE_CLASS;
- } else if ((parts = code.match(/^class\s*(.*)$/))) {
+ } else if ((parts = code.match(/^class \s*(.*)$/))) {
defBlock = indent; // matched multi-line class statement
this.text = parts[1].concat(' ...)');
this.type = TYPE_CLASS;
- } else if ((parts = code.match(/^def\s*(.*):$/))) {
+ } else if ((parts = code.match(/^def \s*(.*):$/))) {
defBlock = indent; // matched def
this.text = parts[1];
this.type = TYPE_FUNCTION;
- } else if ((parts = code.match(/^def\s*(.*)$/))) {
+ } else if ((parts = code.match(/^def \s*(.*)$/))) {
defBlock = indent; // matched multi-line def statement
this.text = parts[1].concat(' ...)');
this.type = TYPE_FUNCTION;

0 comments on commit 89003c4

Please sign in to comment.