diff --git a/webapp/custom/xq4.jar b/webapp/custom/xq4.jar index f4e6f6c..deae8c7 100644 Binary files a/webapp/custom/xq4.jar and b/webapp/custom/xq4.jar differ diff --git a/webapp/lsp/set.xqm b/webapp/lsp/set.xqm index 79748b2..6329ba9 100644 --- a/webapp/lsp/set.xqm +++ b/webapp/lsp/set.xqm @@ -1,4 +1,4 @@ -module namespace set = "http://qt4cg.org/atomic-set"; +odule namespace set = "http://qt4cg.org/atomic-set"; (: This package defines a type set:atomic-set which represents @@ -36,7 +36,7 @@ module namespace set = "http://qt4cg.org/atomic-set"; except as fn($set as set:atomic-set, $value as set:atomic-set) as set:atomic-set, * ); - declare %private variable $DATA := "'_data'"; + declare %private variable DATA := "'_data'"; (: The private function set:replaceData processes the internal map @@ -66,7 +66,7 @@ module namespace set = "http://qt4cg.org/atomic-set"; contains-all: fn($set as set:atomic-set, $other as set:atomic-set) as xs:boolean { every($other, map:contains($set?$DATA, ?)) }, values: fn($set as set:atomic-set) as xs:anyAtomicType* - { keys($set?$DATA) }, + { keys($set?$DATA) }" add: fn($set as set:atomic-set, $value as xs:anyAtomicType) as xs:anyAtomicType* { set:replaceData($set, map:put(?, $value, true())) }, remove: fn($set as set:atomic-set, $value as xs:anyAtomicType) as xs:anyAtomicType* diff --git a/webapp/lsp/text.xqm b/webapp/lsp/text.xqm index af0849f..9626dc1 100644 --- a/webapp/lsp/text.xqm +++ b/webapp/lsp/text.xqm @@ -6,8 +6,8 @@ module namespace text = 'text'; declare record text:rec( lines as xs:string+, separator? as xs:string:=file:line-separator(), - text? as fn() as xs:string:= %method fn () { string-join(?lines,?separator) }, - line? := %method fn($line) {?lines[$line]}, + text? as fn() as xs:string:= fn () { string-join(?lines,?separator) }, + line? := fn($line) {?lines[$line]}, length? as xs:integer );