add l10n and added reserved tag list

This commit is contained in:
danhanson committed 2026-09-07 15:09:13 -05:00
1 parent c0e7b4697d
commit 7eb95e4e84
10 files changed
+37876 -27455

No files matched your search

+4
View File
@@ -77,6 +77,8 @@ tag: [
("include")
("lorem")
("load")
("localize")
("endlocalize")
("now")
("partial")
("partialdef")
@@ -124,6 +126,7 @@ tag: [
("linebreaksbr")
("linenumbers")
("ljust")
("localize")
("lower")
("make_list")
("phone2numeric")
@@ -145,6 +148,7 @@ tag: [
("truncatechars_html")
("truncatewords")
("truncatewords_html")
("unlocalize")
("unordered_list")
("upper")
("urlencode")
+20 -4
View File
@@ -11,10 +11,26 @@
; that extends or includes this one, and a tag written before the load is an
; error even though the load is in the same file.
[
(static)
(get_static_prefix)
(get_media_prefix)] @library.static
; Each pattern captures the name a library registered, rather than the node it
; heads, so that the capture is both the name to look up and the range to
; report. A paired tag names the opening tag only.
(static
tag: ("static") @library.static)
(get_static_prefix
tag: ("get_static_prefix") @library.static)
(get_media_prefix
tag: ("get_media_prefix") @library.static)
(localize_group
tag: ("localize") @library.l10n)
(filter
name: [
("localize")
("unlocalize")] @library.l10n)
; "{% load static %}" makes every name in the library available; "{% load
; static from staticfiles %}" makes only the names listed available.