fixed content regex

This commit is contained in:
danhanson committed 2026-09-14 21:29:27 -05:00
1 parent 831acd3516
commit fa0d880e68
4 files changed
+33 -6

No files matched your search

+1 -1
View File
@@ -603,7 +603,7 @@ const django = grammar({
endTagOpen: ($) => seq("{%", $._group_open_tag_read, optional(SEP)),
endTagClose: ($) =>
seq(optional($.unexpected_argument), $._group_close, optional(SEP), "%}"),
content: ($) => /(?:[^\{]|\{[^\{#%}])+/,
content: ($) => /(?:[^\{]|\{[^\{#%])+/,
// the separator between the parts of a tag; see SEP
_sep: ($) => /[ \t\r\n]+/,
template_node: ($) =>