From: Sergius Nyah Date: Thu, 11 Jan 2024 15:42:08 GMT Subject: Re: [GSOC][RFC] Add more builtin patterns for userdiff, as Mircroproject. Message-ID: In-Reply-To: On Thu, Jan 11, 2024 at 4:11 PM Christian Couder wrote: > > On Thu, Jan 11, 2024 at 3:23 PM Sergius Nyah wrote: > > > > ---------- Forwarded message --------- > > From: Christian Couder > > Date: Thu, Jan 11, 2024 at 11:51 AM > > Subject: Re: [GSOC][RFC] Add more builtin patterns for userdiff, as > > Mircroproject. > > To: Sergius Nyah > > > > > > On Thu, Jan 11, 2024 at 11:48 AM Christian Couder > > wrote: > > > > > > On Wed, Jan 10, 2024 at 9:10 PM Sergius Nyah wrote: > > > > > > > Okay then. I will add support for shell, as it was primarily suggested > > > > > in the idea itself. > > > > > > As Bash is a shell and is already supported, I am not sure which kind > > > of shell you want to support. There are other shells or kinds of shell > > > with different syntax that might be worth supporting, but then you > > > might want to tell us which shell or which new kind of shell. > > > > > > Thanks! > > > > I've definitely learned one more thing. Thank you! > > Also, after taking another keen look at the Patterns defined in userdiff.c, > > In accordance with what you've said, I realized that Kotlin isn't > > supported yet. > > It is actually already supported too: > > $ grep -i -n kotlin userdiff.c > 186:PATTERNS("kotlin", > > To help you a bit, you can get the list of already supported languages using: > > $ perl -ne 'print "$1\n" if m/PATTERNS\(\"(\w+)\"/ or > m/IPATTERN\(\"(\w+)\"/' ada > bash > bibtex > cpp > csharp > css > dts > elixir > fortran > fountain > golang > html > java > kotlin > markdown > matlab > objc > pascal > perl > php > python > ruby > rust > scheme > tex Great! JavaScript, despite its widespread use, isn't implemented, so I will take it. Thank you!