Re: [GSOC][RFC] Add more builtin patterns for userdiff, as Mircroproject.
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Jan 11, 2024, 15:11 UTC
- Message-ID
- <CAP8UFD0YicYXrYgHdvcrWps+cMa=Dp9Ob7SfYLMXQKLp7-B+7w@mail.gmail.com>
- In-Reply-To
- <CANAnif-hWovPnRmSy0pnEJnA274vwiSAkRexstGQdQJ4u-5+pw@mail.gmail.com>
On Thu, Jan 11, 2024 at 3:23 PM Sergius Nyah <sergiusnyah@gmail.com> wrote:
Show 28 quoted lines
> > ---------- Forwarded message --------- > From: Christian Couder <christian.couder@gmail.com> > Date: Thu, Jan 11, 2024 at 11:51 AM > Subject: Re: [GSOC][RFC] Add more builtin patterns for userdiff, as > Mircroproject. > To: Sergius Nyah <sergiusnyah@gmail.com> > > > On Thu, Jan 11, 2024 at 11:48 AM Christian Couder > <christian.couder@gmail.com> wrote: > > > > On Wed, Jan 10, 2024 at 9:10 PM Sergius Nyah <sergiusnyah@gmail.com> 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+)\"/' <userdiff.c 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