[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in funcAndArgs parser for single-line functions #12

Open
FlyingOE opened this issue Aug 10, 2017 · 0 comments
Open

Bug in funcAndArgs parser for single-line functions #12

FlyingOE opened this issue Aug 10, 2017 · 0 comments

Comments

@FlyingOE
Copy link
Contributor

A possible bugfix:

------------------------------- q-doc-parser.q --------------------------------
index 448f4c1..e4761d7 100644
@@ -132,8 +132,8 @@
     namespaces:fills?[namespaceSwitches;`$2_/:funcSignatures;`];
 
     / Recover namespace for each function
-    funcAndArgs:(!). flip(({$[(~).(first;last)@\:y;`;$[(null x)or(y[0]like ".*");::;` sv x,]`$y 0]}@/:namespaces),\:last)@\:'":"vs/:funcSignatures;
-    funcAndArgs:{ $[not "{["~2#x; :enlist`$"..."; :`$";" vs x where not any x in/:"{[]} "] } each funcAndArgs;
+    funcAndArgs:(!). flip(({$[(~).(first;last)@\:y;`;$[(null x)or(y[0]like ".*");::;` sv x,]`$y 0]}@/:namespaces),\:{":"sv 1_x})@\:'":"vs/:funcSignatures;
+    funcAndArgs:{ $[not "{["~2#x; :enlist`$"..."; :`$";" vs x where not any((count[x]^first x ss"]")#x)in/:"{[]} "] } each funcAndArgs;
 
     commentLines:{last[y]+(last[y]_x)?z}[file]\[0;funcSignatures];
     commentLines:commentLines - til each deltas commentLines;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant