mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-14 22:35:23 +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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue