]> sipb.mit.edu Git - ikiwiki.git/commitdiff
response
authorhttp://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web>
Fri, 22 May 2009 06:30:58 +0000 (02:30 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 22 May 2009 06:30:58 +0000 (02:30 -0400)
doc/todo/tracking_bugs_with_dependencies.mdwn

index 04d5f2ba0030c5fe3c2d58ef145f1ed842a53557..707790a750fbe6667f1c5d0ce7f12ea7c48f43c1 100644 (file)
@@ -307,6 +307,9 @@ account all comments above (which doesn't mean it is above reproach :) ).  --[[W
 >>> But if a plugin adds its own match function, it has
 >>> to explicitly call that code to support named pagespecs.
 
 >>> But if a plugin adds its own match function, it has
 >>> to explicitly call that code to support named pagespecs.
 
+>>>> Yes, and it can do that in just three lines of code.  But if we automatically check for named pagespecs all the time we
+>>>> potentially break any matching function that doesn't accept pages, or wants to use multiple arguments.
+
 > * I need to check if your trick to avoid infinite recursion
 >   works if there are two named specs that recursively
 >   call one-another. I suspect it does, but will test this
 > * I need to check if your trick to avoid infinite recursion
 >   works if there are two named specs that recursively
 >   call one-another. I suspect it does, but will test this
@@ -433,7 +436,7 @@ Patch updated to use closures rather than inline generated code for named pagesp
     -                  \w+\([^\)]*\)   # command(params)
     +                  define\(\s*~\w+\s*,((\([^()]*\)) | ([^()]+))+\) # define(~specName, spec) - spec can contain parens 1 deep
     +          |
     -                  \w+\([^\)]*\)   # command(params)
     +                  define\(\s*~\w+\s*,((\([^()]*\)) | ([^()]+))+\) # define(~specName, spec) - spec can contain parens 1 deep
     +          |
-    +                  \w+\([^())]*\)  # command(params) - params cannot contain parens
+    +                  \w+\([^()]*\)   # command(params) - params cannot contain parens
                |
                        [^\s()]+        # any other text
                )
                |
                        [^\s()]+        # any other text
                )