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

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

bug#77746: [PATCH] sh-mode: Fix incorrect word syntax for punctuation in


From: James Cherti
Subject: bug#77746: [PATCH] sh-mode: Fix incorrect word syntax for punctuation in sh-mode
Date: Fri, 11 Apr 2025 10:55:02 -0400
User-agent: Mozilla Thunderbird

Hello,

In sh and Bash, the characters !%^~:.,= and are not valid in variable or
function names.

Assigning them the "_" syntax causes Emacs to treat them as word
constituents, disrupting navigation and completion
(e.g. dabbrev-expand, forward-word, etc.).

The attached patch updates the syntax table in sh-mode to mark
these characters as punctuation, correcting the issue.

--
James Cherti
GitHub: https://github.com/jamescherti
Website: https://www.jamescherti.com/

Attachment: fix-sh-mode-syntax-table.patch
Description: Text Data


reply via email to

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