70 lines
2.0 KiB
TOML
70 lines
2.0 KiB
TOML
[[patterns]]
|
|
begin = "{%\\s*comment ?(\"([\\w\\s])*\" )?\\s*%}"
|
|
end = "{%\\s*endcomment\\s*%}"
|
|
name = "comment.block.django"
|
|
|
|
[[patterns]]
|
|
match = "{#.*#}"
|
|
name = "comment.line.number-sign.django"
|
|
|
|
[[patterns]]
|
|
begin = "{{"
|
|
end = "}}"
|
|
name = "storage.type.variable.django"
|
|
[patterns.captures.0]
|
|
name = "entity.tag.tagbraces.django"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-filter"
|
|
|
|
|
|
[[patterns]]
|
|
begin = "({%)\\s*(load) "
|
|
end = "(%})"
|
|
name = "storage.type.templatetag.django"
|
|
[patterns.captures.1]
|
|
name = "entity.tag.tagbraces.django"
|
|
[patterns.captures.2]
|
|
name = "keyword.control.tag-name.django"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-tag-contrib"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-filter"
|
|
|
|
|
|
[[patterns]]
|
|
begin = "({%)\\s*(autoescape|endautoescape|block|endblock|blocktrans|endblocktrans|trans|plural|comment|endcomment|debug|extends|filter|firstof|for|empty|endfor|if|elif|else|endif|include|ifchanged|endifchanged|ifequal|endifequal|ifnotequal|endifnotequal|from|low|regroup|ssi|spaceless|endspaceless|templatetag|widthratio|with|endwith|csrf_token|cycle|url|verbatim|endverbatim|lorem|thumbnail|endthumbnail|get_static_prefix)\\b"
|
|
end = "(%})"
|
|
name = "storage.type.templatetag.django"
|
|
[patterns.captures.1]
|
|
name = "entity.tag.tagbraces.django"
|
|
[patterns.captures.2]
|
|
name = "keyword.control.tag-name.django"
|
|
[[patterns.patterns]]
|
|
include = "#string-double-quoted"
|
|
[[patterns.patterns]]
|
|
include = "#string-single-quoted"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-tag"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-filter"
|
|
|
|
|
|
[[patterns]]
|
|
begin = "({%)\\s*([a-zA-Z0-9_.]+)"
|
|
end = "(%})"
|
|
name = "storage.type.customtemplatetag.django"
|
|
[patterns.captures.1]
|
|
name = "entity.tag.tagbraces.django"
|
|
[patterns.captures.2]
|
|
name = "constant.other.tag.name.django"
|
|
|
|
[[patterns.patterns]]
|
|
include = "#string-double-quoted"
|
|
[[patterns.patterns]]
|
|
include = "#string-single-quoted"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-tag"
|
|
[[patterns.patterns]]
|
|
include = "#django-template-filter"
|
|
|