diff options
author | pommicket <pommicket@gmail.com> | 2025-09-28 00:15:08 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-28 00:15:08 -0400 |
commit | 896ad5c758ed33905b79c98dc5759d0f5675eb37 (patch) | |
tree | 8ed4031d49ead66b48af73b0502647327c4c2e20 /syntax.c | |
parent | be834b2cb8007c51092a5a106089548a57ba9fb1 (diff) |
Allow - and a few other things in HTML tag names
Diffstat (limited to 'syntax.c')
-rw-r--r-- | syntax.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1215,7 +1215,8 @@ static void syntax_highlight_markdown(SyntaxState *state, const char32_t *line, } static bool is_html_tag_char(char32_t c) { - return c == '<' || c == '/' || c == '!' || c == ':' || is32_alnum(c); + return c == '<' || c == '/' || c == '!' || c == ':' || c == '-' || c == '.' || c == '_' || c >= 0x80 + || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9'); } // highlights XML and HTML |