Skip to content

Commit

Permalink
Add define-type-alias to the highlighting rules, and not to show li…
Browse files Browse the repository at this point in the history
…ke a keyword if it's a package-prefixed one. (#1752)
  • Loading branch information
fukamachi authored Jan 17, 2025
1 parent feccc69 commit b75400c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/coalton-mode/coalton-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@
`(:sequence
"("
,(wrap-symbol-names
"declare" "package" "define-type" "define-struct" "define-class" "define-instance")
"declare" "package" "define-type" "define-type-alias" "define-struct" "define-class" "define-instance")
(:greedy-repetition 0 1 (:register symbol)))
:captures (vector nil
(make-tm-name 'syntax-keyword-attribute)
(make-tm-name 'syntax-type-attribute)))
(make-tm-match
`(:sequence
symbol-boundary-begin
":"
symbol
symbol-boundary-end)
Expand Down

0 comments on commit b75400c

Please sign in to comment.