[Rcpp-commits] r4092 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Dec 5 22:42:32 CET 2012


Author: jjallaire
Date: 2012-12-05 22:42:32 +0100 (Wed, 05 Dec 2012)
New Revision: 4092

Modified:
   pkg/Rcpp/src/AttributesParser.cpp
Log:
don't require space between comment token and attribute

Modified: pkg/Rcpp/src/AttributesParser.cpp
===================================================================
--- pkg/Rcpp/src/AttributesParser.cpp	2012-12-05 21:13:06 UTC (rev 4091)
+++ pkg/Rcpp/src/AttributesParser.cpp	2012-12-05 21:42:32 UTC (rev 4092)
@@ -254,7 +254,7 @@
             // Scan for attributes 
             CommentState commentState;
             Rcpp::List matches = regexMatches(lines_, 
-                "^\\s*//\\s+\\[\\[Rcpp::(\\w+)(\\(.*?\\))?\\]\\]\\s*$");
+                "^\\s*//\\s*\\[\\[Rcpp::(\\w+)(\\(.*?\\))?\\]\\]\\s*$");
             for (int i = 0; i<matches.size(); i++) {   
                 
                 // track whether we are in a comment and bail if we are in one



More information about the Rcpp-commits mailing list