SF.net SVN: geany:[3961] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Jul 14 11:04:52 UTC 2009


Revision: 3961
          http://geany.svn.sourceforge.net/geany/?rev=3961&view=rev
Author:   ntrel
Date:     2009-07-14 11:04:52 +0000 (Tue, 14 Jul 2009)

Log Message:
-----------
Allow autocompletion in Perl double-quoted strings.
Don't autocomplete in Perl single-quoted strings (closes #2821061).
Don't autocomplete in Perl q() strings.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/editor.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-07-14 10:32:32 UTC (rev 3960)
+++ trunk/ChangeLog	2009-07-14 11:04:52 UTC (rev 3961)
@@ -2,6 +2,10 @@
 
  * src/editor.c:
    Properly fix wrong brace highlighting of non-brace character.
+ * src/editor.c:
+   Allow autocompletion in Perl double-quoted strings.
+   Don't autocomplete in Perl single-quoted strings (closes #2821061).
+   Don't autocomplete in Perl q() strings.
 
 
 2009-07-13  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2009-07-14 10:32:32 UTC (rev 3960)
+++ trunk/src/editor.c	2009-07-14 11:04:52 UTC (rev 3961)
@@ -3248,12 +3248,18 @@
 				style == SCE_F_STRINGEOL);
 
 		case SCLEX_PERL:
-			return (style == SCE_PL_STRING ||
+			return (/*style == SCE_PL_STRING ||*/ /* may want variable autocompletion "$(foo)" */
+				style == SCE_PL_CHARACTER ||
 				style == SCE_PL_HERE_DELIM ||
 				style == SCE_PL_HERE_Q ||
 				style == SCE_PL_HERE_QQ ||
 				style == SCE_PL_HERE_QX ||
 				style == SCE_PL_POD ||
+				style == SCE_PL_STRING_Q ||
+				style == SCE_PL_STRING_QQ ||
+				style == SCE_PL_STRING_QX ||
+				style == SCE_PL_STRING_QR ||
+				style == SCE_PL_STRING_QW ||
 				style == SCE_PL_POD_VERB);
 
 		case SCLEX_R:


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list