Closed MoritzBeroRoos closed 1 year ago
Please use the issue template and I'll try to help.
I can't be sure what you're trying to do, but perhaps the following
name: '(?:py|jl)\w*'
your suggested regex does solve this specific problem, thank you. But i do not see why my original solution doesn't work. That's why i openend an Issue (now with template over here [https://github.com/cmhughes/latexindent.pl/issues/436])
Hi, i am trying to use latexindent with pythontex which is why i am trying to treat all Environments starting with 'py' or with 'jl' as verbatim. My testing latex is:
My defaultSettings.yaml contains:
But it looks as if latexindent will only treat the last regex-entry in verbatimEnvironments as verbatim. In the above config my code will be indented. If i swap the entrys for py and jl then my code is not indented. Aditionally the lookForThis argument doesnt seem to influence this behaviour (if jl is the last entry it will indent my above code, no matter what lookForThis is set to) Edit: using
name: '(py\w*)|(jl\w*)'
does very weird things to my code