Skip to content

Commit 64c7ccb

Browse files
committed
Use regexp-opt's support to matching symbol boundaries
1 parent 5f130ca commit 64c7ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dhall-mode.el

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@
8282
"Syntax table used while in `dhall-mode'.")
8383

8484
;; define several category of keywords
85-
(defvar dhall-mode-keywords (concat "\\_<" (regexp-opt '("if" "then" "else" "let" "in" "using" "as")) "\\_>"))
85+
(defvar dhall-mode-keywords (regexp-opt '("if" "then" "else" "let" "in" "using" "as") 'symbols))
8686

8787
(defvar dhall-mode-types
88-
(concat "\\_<" (regexp-opt '("Optional" "Bool" "Natural" "Integer" "Double" "Text" "List" "Type")) "\\_>"))
88+
(regexp-opt '("Optional" "Bool" "Natural" "Integer" "Double" "Text" "List" "Type") 'symbols))
8989

90-
(defvar dhall-mode-constants (concat "\\_<" (regexp-opt '("True" "False")) "\\_>"))
90+
(defvar dhall-mode-constants (regexp-opt '("True" "False") 'symbols))
9191
(defvar dhall-mode-numerals "[+\\-][1-9]+")
9292
(defvar dhall-mode-doubles "[0-9]\.[0-9]+")
9393
(defvar dhall-mode-operators (regexp-opt '("->" "\\[" "]" "," "++" "#" ":" "=" "==" "!=" "\\\\\(" "λ" "" ")" "&&" "||" "{" "}" "(")))

0 commit comments

Comments
 (0)