Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I change the regular expression used when guessing function names?

0
Posted

Can I change the regular expression used when guessing function names?

0

Yes, It is stored in the guessPattern pref, and defaults to (\w+)\s*[:=]\s*$. When guessing function names, Venkman matches all of the text preceeding the last instance of the word function on the starting line of the function. The results of the first capture (the (\w+) part in the default expression) will be used as the function’s name. The maximum number of previous lines to include is set to 5 by defaut, and can be changed with the guessContext preference.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123