gedit r6775 - in trunk: . plugins/snippets/snippets



Author: jessevdk
Date: Thu Jan  1 13:42:55 2009
New Revision: 6775
URL: http://svn.gnome.org/viewvc/gedit?rev=6775&view=rev

Log:
	* plugins/snippets/snippets/Parser.py: fixed bug in parsing shell
	placeholders falsly not allowing ` in $()


Modified:
   trunk/ChangeLog
   trunk/plugins/snippets/snippets/Parser.py

Modified: trunk/plugins/snippets/snippets/Parser.py
==============================================================================
--- trunk/plugins/snippets/snippets/Parser.py	(original)
+++ trunk/plugins/snippets/snippets/Parser.py	Thu Jan  1 13:42:55 2009
@@ -186,7 +186,7 @@
 
         def _match_shell(self):
                 text = self.remains()
-                match = re.match('`((%s):)?((\\\\`|[^`])+?)`' % self.SREG_ID, text) or re.match('\\$\\(((%s):)?((\\\\\\)|[^`])+?)\\)' % self.SREG_ID, text)
+                match = re.match('`((%s):)?((\\\\`|[^`])+?)`' % self.SREG_ID, text) or re.match('\\$\\(((%s):)?((\\\\\\)|[^\\)])+?)\\)' % self.SREG_ID, text)
                 
                 if not match:
                         return None



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]