diff options
| author | john muhl | 2025-05-14 08:53:42 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2025-08-30 11:31:34 +0300 |
| commit | 34f3ac6c5b98d79e51bd9bbaf3c5bd89b2faaba3 (patch) | |
| tree | d0bd595d05995dabcaefe4f237e99193fe046a2c /test | |
| parent | b0efe06551bfed447328c11d6711ffd9fc63dfe4 (diff) | |
| download | emacs-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.lua | 5 |
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 |
| 12 | local line_comment = "comment" -- comment | 12 | local 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 | ||
| 18 | function calc() end | ||
| 14 | 19 | ||
| 15 | -- Definition | 20 | -- Definition |
| 16 | local function f1() end | 21 | local function f1() end |