PR 10704
svn: r18323 original commit: 2ce01fd5ceaee2b3e9ad05c32d201e02425c9c58
This commit is contained in:
parent
bbd9538438
commit
0164ff1d49
|
@ -810,7 +810,9 @@ added get-regions
|
|||
(let ([tokens (lexer-state-tokens ls)])
|
||||
(tokenize-to-pos ls position)
|
||||
(send tokens search! (- position (lexer-state-start-pos ls)))
|
||||
(data-type (send tokens get-root-data))))))
|
||||
(let ([root-data (send tokens get-root-data)])
|
||||
(and root-data
|
||||
(data-type root-data)))))))
|
||||
|
||||
(define/private (tokenize-to-pos ls position)
|
||||
(when (and (not (lexer-state-up-to-date? ls))
|
||||
|
|
Loading…
Reference in New Issue
Block a user