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

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

bug#26037: 25.1; perl-mode add syntax support for subroutine signatures


From: npostavs
Subject: bug#26037: 25.1; perl-mode add syntax support for subroutine signatures
Date: Tue, 14 Mar 2017 22:08:41 -0400

[Please keep address@hidden on CC]
--- Begin Message --- Subject: Re: bug#26037: 25.1; perl-mode add syntax support for subroutine signatures Date: Tue, 14 Mar 2017 14:14:58 +0200
Hi, thanks for your reply!

The '$' inside 'sub ($)' should be treated as punctuation (or symbol,
sorry, I'm not 100% sure, see below) due to the "@" syntax class - if
I'm not mistaken, "@" will let the syntax "fall-through" to the
standard syntax table; the standard syntax table, in turn, should
define '$' and other perl sigils as punctuation.

However, I'm not sure how to verify that the '$' in 'sub ($)' is
punctuation or symbol.

I'm using this document for reference to syntax classes:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Syntax-Class-Table.html

--- End Message ---

I believe the standard syntax table is fundamental mode's syntax table,
not perl's.  Otherwise you might as well just delete the entry entirely.

You can check any character's current syntax by moving point to it, and
doing C-u C-x =.

reply via email to

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