Where is the new function pragma code within TW sources?

I am not able to see where in the sources is the code for the new “function” pragma. Could you help me? Thank you!

Hi @jypre

The code for the parser is here:
$:/core/modules/parsers/wikiparser/rules/fnprocdef.js

Fred

Thank you @tw-FRed. I have now to try to understand this piece of code. Hacking time!