emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71550: closed ([PATCH] Add jsdoc support to js-ts-mode)


From: GNU bug Tracking System
Subject: bug#71550: closed ([PATCH] Add jsdoc support to js-ts-mode)
Date: Sun, 23 Jun 2024 22:33:02 +0000

Your message dated Mon, 24 Jun 2024 01:32:40 +0300
with message-id <d786736e-d5bd-4fe8-b713-67e283f8c91b@gutov.dev>
and subject line Re: bug#71550: [PATCH] Add jsdoc support to js-ts-mode
has caused the debbugs.gnu.org bug report #71550,
regarding [PATCH] Add jsdoc support to js-ts-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
71550: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71550
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Add jsdoc support to js-ts-mode Date: Fri, 14 Jun 2024 14:33:25 +0200
Tags: patch

Hi,

jsdoc [1] is a special syntax to document JavaScript code. The attached
patch adds a jsdoc parser and font-lock settings to files using the
`js-ts-mode' major mode if the jsdoc grammar is available. Before/after
screenshots are attached to this email.

[1] jsdoc: https://jsdoc.app/

The new code does *not* make `js-ts-mode' dependent on the availability
of the jsdoc grammar: instead, `js-ts-mode' will keep working as it
works today if the jsdoc grammar is absent.

The support for paragraph filling currently in master is broken because
the prefix '*' isn't added at the beginning of lines when filling
documentation blocks. I tried changing the value of
`c-ts-common--comment-regexp' to include "description" (as this is what
the jsdoc parser uses for text) but the result is worse. I also tried
reusing `js-fill-paragraph' but that fails as well. The result of this
patch is that `M-q' doesn't change anything anymore in these blocks. I
will report a bug and seek assistance to fix it if this patch is merged.

Best,

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Attachment: 0001-Add-jsdoc-support-to-js-ts-mode.patch
Description: Text Data

Attachment: after.png
Description: PNG image

Attachment: before.png
Description: PNG image


--- End Message ---
--- Begin Message --- Subject: Re: bug#71550: [PATCH] Add jsdoc support to js-ts-mode Date: Mon, 24 Jun 2024 01:32:40 +0300 User-agent: Mozilla Thunderbird
On 22/06/2024 10:08, Eli Zaretskii wrote:
Date: Sat, 22 Jun 2024 00:53:43 +0300
From: Dmitry Gutov<dmitry@gutov.dev>

Eli, is this okay for master (Emacs 30), or should it wait until the
release branch is cut?
It's okay to install this now, thanks.

Thank you, I've pushed it to emacs-30.

And thanks do Damien!

The follow-ups (filling-related?) will go to separate reports.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]