diff options
| author | Adam <adamdharrison@gmail.com> | 2022-01-18 21:07:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 21:07:46 -0500 |
| commit | d3e163688109329d4bbb08d5c5bfc3f46261bb0a (patch) | |
| tree | edf2fb741f39020eb17be8e2143c71751a946e29 /data/plugins/language_html.lua | |
| parent | 3b3e41c095c582618a126a1e7e626c09289988e7 (diff) | |
| parent | fc809b3172b5c80f98d4f5496fa7c5a4cc903623 (diff) | |
| download | lite-xl-d3e163688109329d4bbb08d5c5bfc3f46261bb0a.tar.gz lite-xl-d3e163688109329d4bbb08d5c5bfc3f46261bb0a.zip | |
Merge pull request #771 from takase1121/multiline-comment-command
add toggle-block-comment
Diffstat (limited to 'data/plugins/language_html.lua')
| -rw-r--r-- | data/plugins/language_html.lua | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/data/plugins/language_html.lua b/data/plugins/language_html.lua index 1f4515bc..ff61fa7f 100644 --- a/data/plugins/language_html.lua +++ b/data/plugins/language_html.lua @@ -4,28 +4,29 @@ local syntax = require "core.syntax" syntax.add { name = "HTML", files = { "%.html?$" }, + block_comment = { "<!--", "-->" }, patterns = { - { - pattern = { + { + pattern = { "<%s*[sS][cC][rR][iI][pP][tT]%s+[tT][yY][pP][eE]%s*=%s*" .. "['\"]%a+/[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT]['\"]%s*>", - "<%s*/[sS][cC][rR][iI][pP][tT]>" + "<%s*/[sS][cC][rR][iI][pP][tT]>" }, - syntax = ".js", - type = "function" + syntax = ".js", + type = "function" }, - { - pattern = { + { + pattern = { "<%s*[sS][cC][rR][iI][pP][tT]%s*>", - "<%s*/%s*[sS][cC][rR][iI][pP][tT]>" + "<%s*/%s*[sS][cC][rR][iI][pP][tT]>" }, syntax = ".js", type = "function" }, - { - pattern = { - "<%s*[sS][tT][yY][lL][eE][^>]*>", - "<%s*/%s*[sS][tT][yY][lL][eE]%s*>" + { + pattern = { + "<%s*[sS][tT][yY][lL][eE][^>]*>", + "<%s*/%s*[sS][tT][yY][lL][eE]%s*>" }, syntax = ".css", type = "function" |
