[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add a Verilog HDL syntax highlighting file
From: |
Benno Schulenberg |
Subject: |
Re: add a Verilog HDL syntax highlighting file |
Date: |
Sun, 10 Jan 2021 20:10:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Op 08-01-2021 om 19:35 schreef Jorge Juan:
> https://packages.debian.org/sid/iverilog
> https://packages.debian.org/sid/verilator
> https://packages.debian.org/sid/yosys
Okay.
>> Wouldn't it make more sense to include a Verilog syntax file for nano with
>> some major Verilog package?
>
> I do not think it can be compared. Would you expect ruby, python or
> gcc include syntax highlighting configuration for many text editors?
Python and Gcc are not comparable to Verilog: the first two are at least
two orders of magnitude more used than Verilog. Why include a syntax in
nano by default for something that less than a percent of the users use?
> I understand that you may find Verilog not interesting enough to be
> included with nano. It is ok. I will probably publish the syntax as a
> gitlab snippet so it can be easily reached by interested users.
Unfortunately the Gitlab snippet (https://gitlab.com/-/snippets/2058705)
is unrechable without Javascript. You may want to publish it in a place
that is more freely accessible. Maybe on Savannah?
https://savannah.gnu.org/patch/?group=nano
(It doesn't have to be a patch. You can attach plain syntax files there.)
> In the
> meantime, I decided to rework the syntax file a bit more and I have a
> new version now supporting both Verilog and SystemVerilog.
Oh. I wouldn't have done that. I would have kept the two separated.
> In this version I use very long regular expressions to match the whole
> list of standard keywords. It make very long lines, which I do not
> really like, but it is easier to maintain and probably more efficient
> to parse.
Maybe more efficient for the regex coloring code, but in my opinion
/less/ maintainable because harder to read.
Benno
signature.asc
Description: OpenPGP digital signature
- Add Verilog HDL syntax highlighting path, Jorge Juan, 2021/01/06
- Re: Add Verilog HDL syntax highlighting path, Benno Schulenberg, 2021/01/07
- Re: Add Verilog HDL syntax highlighting path, Tomas Mudrunka, 2021/01/07
- Re: Add Verilog HDL syntax highlighting path, Jorge Juan, 2021/01/07
- Re: add a Verilog HDL syntax highlighting file, Benno Schulenberg, 2021/01/08
- Re: add a Verilog HDL syntax highlighting file, Jorge Juan, 2021/01/08
- Re: add a Verilog HDL syntax highlighting file, Jorge Juan, 2021/01/08
- Re: add a Verilog HDL syntax highlighting file,
Benno Schulenberg <=
- Re: add a Verilog HDL syntax highlighting file, Jorge Juan, 2021/01/10
- Re: add a Verilog HDL syntax highlighting file, Jorge Juan, 2021/01/11
- Re: add a Verilog HDL syntax highlighting file, ObeliX, 2021/01/25
- Re: add a Verilog HDL syntax highlighting file, Jorge Juan, 2021/01/25
- Re: add a Verilog HDL syntax highlighting file, ObeliX, 2021/01/26