From eac48f519040e8e2d17dd1a5b76c2818ecf58cd1 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 6 Feb 2014 00:19:41 +0400 Subject: [PATCH] fix broken python snippet --- lib/ace/snippets.js | 2 +- lib/ace/snippets/python.snippets | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ace/snippets.js b/lib/ace/snippets.js index 4418550d..f382f7ba 100644 --- a/lib/ace/snippets.js +++ b/lib/ace/snippets.js @@ -169,7 +169,7 @@ var SnippetManager = function() { // defult but can't fill :( case "FILENAME": case "FILEPATH": - return "ace.ajax.org"; + return ""; case "FULLNAME": return "Ace"; } diff --git a/lib/ace/snippets/python.snippets b/lib/ace/snippets/python.snippets index dd2e8123..347bbdeb 100644 --- a/lib/ace/snippets/python.snippets +++ b/lib/ace/snippets/python.snippets @@ -7,8 +7,8 @@ snippet from # Module Docstring snippet docs ''' - File: ${1:`Filename('$1.py', 'foo.py')`} - Author: ${2:`g:snips_author`} + File: ${1:FILENAME:file_name} + Author: ${2:author} Description: ${3} ''' snippet wh @@ -129,7 +129,7 @@ snippet " """ # test function/method snippet test - def test_${1:description}(${2:`indent('.') ? 'self' : ''`}): + def test_${1:description}(${2:self}): ${3:# TODO: write code...} # test case snippet testcase