mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-10 04:16:30 +00:00
remove renaming
This commit is contained in:
parent
f391e0de9c
commit
7bb9904f81
2 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,6 @@ pub struct TagSpec {
|
|||
#[serde(rename = "type")]
|
||||
pub tag_type: TagType,
|
||||
pub closing: Option<String>,
|
||||
#[serde(rename = "intermediates")]
|
||||
pub branches: Option<Vec<BranchSpec>>,
|
||||
pub args: Option<Vec<ArgSpec>>,
|
||||
}
|
||||
|
|
|
@ -4,11 +4,11 @@ closing = "endif"
|
|||
|
||||
# We keep the intermediates field name in TOML since we're using serde rename
|
||||
# to map it to branches in the Rust code
|
||||
[[django.template.defaulttags.if.intermediates]]
|
||||
[[django.template.defaulttags.if.branches]]
|
||||
name = "elif"
|
||||
args = true
|
||||
|
||||
[[django.template.defaulttags.if.intermediates]]
|
||||
[[django.template.defaulttags.if.branches]]
|
||||
name = "else"
|
||||
args = false
|
||||
|
||||
|
@ -22,7 +22,7 @@ closing = "endfor"
|
|||
|
||||
# We keep the intermediates field name in TOML since we're using serde rename
|
||||
# to map it to branches in the Rust code
|
||||
[[django.template.defaulttags.for.intermediates]]
|
||||
[[django.template.defaulttags.for.branches]]
|
||||
name = "empty"
|
||||
args = false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue