Skip to content

Commit d2a931a

Browse files
committed
Syntax table entries for non-alphanumeric chars
See #410
1 parent 95b5efe commit d2a931a

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

haskell-mode.el

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,42 @@ Run M-x describe-variable haskell-mode-hook for a list of such modes."))
289289
(mapc (lambda (x)
290290
(modify-syntax-entry x "_" table))
291291
;; Some of these are actually OK by default.
292-
"!#$%&*+⧺./:<=>?@^|~")
292+
"!#$%&*+./:<=>?@^|~")
293+
294+
;; Characters in these blocks are non-alphanumeric and can be
295+
;; symbol constituents; haskell uses Unicode character category.
296+
(dolist (block '(("Alchemical Symbols" 128768 128895)
297+
("Ancient Symbols" 65936 65999)
298+
("Arrows" 8592 8703)
299+
("Byzantine Musical Symbols" 118784 119039)
300+
("CJK Symbols and Punctuation" 12288 12351)
301+
("Combining Diacritical Marks for Symbols" 8400 8447)
302+
("Cuneiform Numbers and Punctuation" 74752 74879)
303+
("Currency Symbols" 8352 8399)
304+
("Enclosed Alphanumeric Supplement" 127232 127487)
305+
("Enclosed Alphanumerics" 9312 9471)
306+
("Enclosed CJK Letters and Months" 12800 13055)
307+
("Enclosed Ideographic Supplement" 127488 127743)
308+
("General Punctuation" 8192 8303)
309+
("Khmer Symbols" 6624 6655)
310+
("Mathematical Operators" 8704 8959)
311+
("Miscellaneous Mathematical Symbols-A" 10176 10223)
312+
("Miscellaneous Mathematical Symbols-B" 10624 10751)
313+
("Miscellaneous Symbols" 9728 9983)
314+
("Miscellaneous Symbols and Arrows" 11008 11263)
315+
("Miscellaneous Symbols and Pictographs" 127744 128511)
316+
("Musical Symbols" 119040 119295)
317+
("Rumi Numeral Symbols" 69216 69247)
318+
("Supplemental Arrows-A" 10224 10239)
319+
("Supplemental Arrows-B" 10496 10623)
320+
("Supplemental Arrows-C" 129024 129279)
321+
("Supplemental Mathematical Operators" 10752 11007)
322+
("Supplemental Punctuation" 11776 11903)
323+
("Tai Xuan Jing Symbols" 119552 119647)
324+
("Transport and Map Symbols" 128640 128767)
325+
("Yijing Hexagram Symbols" 19904 19967)))
326+
(modify-syntax-entry (cons (nth 1 block) (nth 2 block)) "_" table))
327+
293328
(unless (featurep 'mule)
294329
;; Non-ASCII syntax should be OK, at least in Emacs.
295330
(mapc (lambda (x)

0 commit comments

Comments
 (0)