[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/sxhkdrc-mode 4541a74027: Define sxhkdrc-mode-syntax-tab
From: |
ELPA Syncer |
Subject: |
[elpa] externals/sxhkdrc-mode 4541a74027: Define sxhkdrc-mode-syntax-table to make dot a symbol constituent |
Date: |
Sat, 7 Dec 2024 03:59:05 -0500 (EST) |
branch: externals/sxhkdrc-mode
commit 4541a740278a73997e911c3830d2c5421fc730af
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Define sxhkdrc-mode-syntax-table to make dot a symbol constituent
This is because we may call something like my_script.sh
---
sxhkdrc-mode.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sxhkdrc-mode.el b/sxhkdrc-mode.el
index c81c09f3c1..72ba0864d1 100644
--- a/sxhkdrc-mode.el
+++ b/sxhkdrc-mode.el
@@ -59,6 +59,12 @@ Space Partitioning Window Manager (BSPWM)."
(indent-command . 4))
"List of associations for sxhkdrc syntax.")
+(defvar sxhkdrc-mode-syntax-table
+ (let ((table (make-syntax-table)))
+ (modify-syntax-entry ?. "_" table)
+ table)
+ "Syntax table for `sxhkdrc-mode'.")
+
(defun sxhkdrc-mode--modifiers-regexp (placement)
"Return `sxhkdrc-mode--modifiers' as a single string regexp.
PLACEMENT controls how to format the regexp: `start' is for the
@@ -152,6 +158,7 @@ key chord chain (demarcated by a colon or semicolon)."
;;;###autoload
(define-derived-mode sxhkdrc-mode fundamental-mode "SXHKDRC"
"Major mode for editing sxhkdrc files (Simple X Hot Key Daemon)."
+ :syntax-table sxhkdrc-mode-syntax-table
(setq-local indent-line-function 'sxhkdrc-mode-indent-line
comment-start "#"
comment-start-skip (concat (regexp-quote comment-start) "+\\s *")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/sxhkdrc-mode 4541a74027: Define sxhkdrc-mode-syntax-table to make dot a symbol constituent,
ELPA Syncer <=