[add] connection state
This commit is contained in:
parent
b7d0d8e03d
commit
e32ff3d77a
8 changed files with 81 additions and 28 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import module namespace pos="lsp/position" at "../webapp/lsp/position.xqm";
|
||||
import module namespace xq4="java:quodatum.parser.xq4";
|
||||
let $text:="1+2 a"
|
||||
|
||||
return pos:toPosition($text,5)
|
||||
let $xml:=xq4:parseModule($text)=>trace("£ ")
|
||||
let $b:=number($xml/@b)-1
|
||||
let $e:= number($xml/@e)-1
|
||||
return (pos:toPosition($text,$b),
|
||||
pos:toPosition($text, min(($e,string-length($text)-1))))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue