mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-10 20:36:21 +00:00
updates
This commit is contained in:
parent
c57ff43001
commit
fab360bb60
21 changed files with 125 additions and 22 deletions
|
@ -20,11 +20,11 @@ impl Parser {
|
|||
|
||||
// First pass: collect line offsets
|
||||
for token in self.tokens.tokens() {
|
||||
if token.line() > last_line {
|
||||
if *token.line() > last_line {
|
||||
if let Some(start) = token.start() {
|
||||
line_offsets.add_line(*start as u32);
|
||||
}
|
||||
last_line = token.line();
|
||||
last_line = *token.line();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,5 +13,7 @@ nodes:
|
|||
span:
|
||||
start: 21
|
||||
length: 18
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -69,5 +69,7 @@ nodes:
|
|||
tag_span:
|
||||
start: 0
|
||||
length: 8
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -52,5 +52,7 @@ nodes:
|
|||
tag_span:
|
||||
start: 0
|
||||
length: 17
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -32,5 +32,7 @@ nodes:
|
|||
tag_span:
|
||||
start: 0
|
||||
length: 24
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -16,5 +16,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 15
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -26,5 +26,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 35
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -250,5 +250,19 @@ nodes:
|
|||
span:
|
||||
start: 359
|
||||
length: 1
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
- 39
|
||||
- 81
|
||||
- 116
|
||||
- 159
|
||||
- 184
|
||||
- 231
|
||||
- 273
|
||||
- 289
|
||||
- 309
|
||||
- 326
|
||||
- 337
|
||||
- 347
|
||||
errors: []
|
||||
|
|
|
@ -61,5 +61,7 @@ nodes:
|
|||
tag_span:
|
||||
start: 0
|
||||
length: 17
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -107,6 +107,19 @@ nodes:
|
|||
tag_span:
|
||||
start: 48
|
||||
length: 24
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
- 23
|
||||
- 43
|
||||
- 78
|
||||
- 130
|
||||
- 169
|
||||
- 183
|
||||
- 243
|
||||
- 275
|
||||
- 311
|
||||
- 332
|
||||
- 365
|
||||
errors:
|
||||
- UnclosedTag: if
|
||||
|
|
|
@ -26,6 +26,8 @@ nodes:
|
|||
tag_span:
|
||||
start: 0
|
||||
length: 17
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors:
|
||||
- UnclosedTag: for
|
||||
|
|
|
@ -21,6 +21,8 @@ nodes:
|
|||
tag_span:
|
||||
start: 0
|
||||
length: 24
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors:
|
||||
- UnclosedTag: if
|
||||
|
|
|
@ -8,5 +8,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 5
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 28
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 27
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -126,5 +126,36 @@ nodes:
|
|||
span:
|
||||
start: 799
|
||||
length: 35
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
- 15
|
||||
- 22
|
||||
- 33
|
||||
- 65
|
||||
- 96
|
||||
- 133
|
||||
- 150
|
||||
- 190
|
||||
- 214
|
||||
- 240
|
||||
- 269
|
||||
- 297
|
||||
- 312
|
||||
- 330
|
||||
- 342
|
||||
- 353
|
||||
- 385
|
||||
- 450
|
||||
- 493
|
||||
- 531
|
||||
- 604
|
||||
- 643
|
||||
- 682
|
||||
- 709
|
||||
- 747
|
||||
- 775
|
||||
- 799
|
||||
- 814
|
||||
- 826
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 15
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 34
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,7 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 21
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,13 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 142
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
- 31
|
||||
- 58
|
||||
- 75
|
||||
- 93
|
||||
- 112
|
||||
- 132
|
||||
errors: []
|
||||
|
|
|
@ -8,5 +8,12 @@ nodes:
|
|||
span:
|
||||
start: 0
|
||||
length: 97
|
||||
line_offsets: []
|
||||
line_offsets:
|
||||
- 0
|
||||
- 0
|
||||
- 23
|
||||
- 47
|
||||
- 61
|
||||
- 82
|
||||
- 88
|
||||
errors: []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue