ryuukk

Results 93 comments of ryuukk

min/max are very common/universal function names, making them reserved is a mistake in my opinion D already block certain combo due to certain names being already used, example: - ``init/deinit``...

http://www.suodenjoki.dk/us/archive/2010/min-max.htm reserving keywords is a mistake it is mind boggling that you repeat the same mistakes as C++, worse, people encouraging you to do so i will never understand this...

> > http://www.suodenjoki.dk/us/archive/2010/min-max.htm > > reserving keywords is a mistake > > That's not even close to the same problem. In that case, the `max` symbol is being replaced in...

I was testing more in project and it breaks here: ![image](https://github.com/lite-xl/lite-xl-plugins/assets/44361234/f0150e12-c28f-4cac-88aa-c077fa4fac17) I'm too bad with regex unfortunately, so i can't do much

Ohh i misread your comment, your patch works! thanks a lot!

Small issue: ![image](https://github.com/lite-xl/lite-xl-plugins/assets/44361234/4e3f1e56-5bd9-40ff-b740-c5cbe06d12a5) Or is that expected?

```D struct List(T) {} void my_template(T)() { } // both are valid my_template!(int)(); my_template!int; ``` D is quite complex to parse

you can call functions without parenthesis if function has no arguments, so that complicates parsing

What do you use to quickly test the regex used in lua?