aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjohn muhl2025-05-14 08:53:42 -0500
committerEli Zaretskii2025-08-30 11:31:34 +0300
commit34f3ac6c5b98d79e51bd9bbaf3c5bd89b2faaba3 (patch)
treed0bd595d05995dabcaefe4f237e99193fe046a2c /test
parentb0efe06551bfed447328c11d6711ffd9fc63dfe4 (diff)
downloademacs-34f3ac6c5b98d79e51bd9bbaf3c5bd89b2faaba3.tar.gz
emacs-34f3ac6c5b98d79e51bd9bbaf3c5bd89b2faaba3.zip
Fontify all comment delimiters in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts--comment-font-lock): Apply 'font-lock-comment-delimiter-face' to the entire span of initial dashes. In particular, this improves the appearance of LuaCATS and EmmyLua style annotations which use "---". * test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua: Add tests. (Bug#79258)
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua b/test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua
index 93d589e3825..5a36bcad10b 100644
--- a/test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua
+++ b/test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua
@@ -11,6 +11,11 @@ Multi-line comment
11-- <- font-lock-comment-face 11-- <- font-lock-comment-face
12local line_comment = "comment" -- comment 12local line_comment = "comment" -- comment
13-- ^ font-lock-comment-face 13-- ^ font-lock-comment-face
14---@alias MyNumber integer
15-- <- font-lock-comment-delimiter-face
16------Calculate new number
17-- ^ font-lock-comment-delimiter-face
18function calc() end
14 19
15-- Definition 20-- Definition
16local function f1() end 21local function f1() end