-
Notifications
You must be signed in to change notification settings - Fork 1
/
unison-ts-syntax-table.el
36 lines (33 loc) · 1.18 KB
/
unison-ts-syntax-table.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;;; unison-ts-syntax-table.el --- Description -*- lexical-binding: t; -*-
;;
;; Copyright (C) 2023 Filipe Guerreiro
;;
;; Author: Filipe Guerreiro <[email protected]>
;; Maintainer: Filipe Guerreiro <[email protected]>
;; Created: November 11, 2023
;; Modified: November 11, 2023
;; Version: 0.0.1
;; Keywords: abbrev bib c calendar comm convenience data docs emulations extensions faces files frames games hardware help hypermedia i18n internal languages lisp local maint mail matching mouse multimedia news outlines processes terminals tex tools unix vc wp
;; Homepage: https://github.com/fmguerreiro/syntax-table
;; Package-Requires: ((emacs "24.3"))
;;
;; This file is not part of GNU Emacs.
;;
;;; Commentary:
;;
;; Description
;;
;;; Code:
(defconst unison-ts-syntax-table
(let ((table (make-syntax-table)))
;; -- Are comments
(modify-syntax-entry ?- ". 12" table)
;; \n is a comment ender
(modify-syntax-entry ?\n ">" table)
;; [: :] for docs
(modify-syntax-entry ?\[ ". 1" table)
(modify-syntax-entry ?: ". 23b" table)
(modify-syntax-entry ?\] ". 4" table)
table))
(provide 'unison-ts-syntax-table)
;;; unison-ts-syntax-table.el ends here