79780744

Date: 2025-10-02 08:59:22
Score: 0.5
Natty:
Report link

Solved.

I submitted the problem to Copilot, Gemini, and Stack Overflow AI, and none of them were able to find the problem and fix it.

All I had to do was change the first two rules in onEnterRules to this:

...
{
  "beforeText": "^((?!\\/\\/).)*\\s*\\$[a-zA-Z0-9_]+\\([a-zA-Z0-9%_]+,$",
  "action": { "indent": "indent" }
},
{
  "beforeText": "^((?!\\/\\/).)*\\s*.*,$",
  "action": { "indent": "none" }
},
...

Basically, I added the end-of-line character $ to beforeText, and everything started working as expected again.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Terr Lacont