Skip to content

Commit

Permalink
xquery-intellij-plugin 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rhdunn committed Nov 24, 2021
1 parent 86880f5 commit c69333d
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 53 deletions.
52 changes: 1 addition & 51 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,8 @@
# Change Log

## 1.10.0 - (In Development)

IntelliJ Integration:

1. Add paired brace matching for Saxon context item and lambda functions.
2. Add paired brace matching for XPath expressions.
3. Add code commenting support for XPath.

Code Folding:

1. Add code folding for XQuery string interpolations.
2. Add code folding for Full Text, Updating, Scripting, and vendor extension expressions containing braces (`{...}`).

Syntax and Semantic Highlighting:

1. Highlight `=` in XML attributes as attribute values to match IntelliJ's highlighting behaviour.
2. Highlight direct processing instruction node (`<?xml ...?>`) tokens.

References and Resolving:

1. Fix resolving elements to `xmlns` nodes where the namespace URI is not also bound to a prefix.

Refactoring:

1. Support in-place rename refactoring for variables, except for private variable declarations.

XPath and XQuery:

1. Fix parsing `FTContainsExpr` in the RHS of a `ComparisonExpr` in XPath expressions.
2. Improve the error message when a `return` is used without a `ForExpr` or `LetExpr` in XPath expressions.
3. Don't generate an error when parsing `?$` and `?($)`, where the `VarName` is missing.
4. Improve the error message when a `QName` is used in a `DirPIConstructor`.

eXist-db:

1. Update the built-in function definitions to eXist-db 5.3. Thanks to Juri Leino for providing
the built-in function definitions.

MarkLogic Rewriter XML Integration:

1. Cache the endpoints to improve the line marker performance when the data has been previously calculated.
2. In the Endpoints tool window navigate to the module file, not the rewriter XML element that references it.

MarkLogic Search Options XML Integration:

1. Support resolving `parse/@at`, `start-facet/@at`, and `finish-facet/@at` attribute values in XQuery direct
constructors to the XQuery/MJS/SJS file they reference.
2. Support resolving `parse/@apply`, `start-facet/@apply`, and `finish-facet/@apply` attribute values in XQuery
direct constructors to the XQuery function they reference.
3. Add line markers to functions referenced by custom facets in search options XQuery direct constructors.

## 2021

* [1.9.2 - 2021-11-24](docs/_posts/2021-11-24-release-1.9.2.md)
* [1.9.1 - 2021-07-23](docs/_posts/2021-07-23-release-1.9.1.md)
* [1.9.0 - 2021-03-31](docs/_posts/2021-03-31-release-1.9.0.md)

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ buildscript {
ext.kotlin_stdlib = "kotlin-stdlib"
ext.java_version = "11"

ext.plugin_version = '1.10.0'
ext.plugin_version = '1.9.2'
// Suffix ordering:
// `'-snapshot'` -- for development builds
// `'-eap-###'` -- for early access preview builds (`-eap-1`, `-eap-2`, `-eap-3`, etc.)
// `''` -- for release builds
ext.suffix = '-snapshot'
ext.suffix = ''

repositories {
mavenCentral()
Expand Down
59 changes: 59 additions & 0 deletions docs/_posts/2021-11-24-release-1.9.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
layout: post
title: XQuery IntelliJ Plugin 1.9.2
category: release
---
1. In-place rename refactoring support for variables.
2. Support for `@apply` and `@at` in MarkLogic search option custom facet extensions within XQuery code.
3. Update the built-in function definitions to eXist-db 5.3.
4. Code folding for the remaining `{...}` constructs.
5. Bug fixes and general improvements.

IntelliJ Integration:

1. Add paired brace matching for Saxon context item and lambda functions.
2. Add paired brace matching for XPath expressions.
3. Add code commenting support for XPath.

Code Folding:

1. Add code folding for XQuery string interpolations.
2. Add code folding for Full Text, Updating, Scripting, and vendor extension expressions containing braces (`{...}`).

Syntax and Semantic Highlighting:

1. Highlight `=` in XML attributes as attribute values to match IntelliJ's highlighting behaviour.
2. Highlight direct processing instruction node (`<?xml ...?>`) tokens.

References and Resolving:

1. Fix resolving elements to `xmlns` nodes where the namespace URI is not also bound to a prefix.

Refactoring:

1. Support in-place rename refactoring for variables, except for private variable declarations.

XPath and XQuery:

1. Fix parsing `FTContainsExpr` in the RHS of a `ComparisonExpr` in XPath expressions.
2. Improve the error message when a `return` is used without a `ForExpr` or `LetExpr` in XPath expressions.
3. Don't generate an error when parsing `?$` and `?($)`, where the `VarName` is missing.
4. Improve the error message when a `QName` is used in a `DirPIConstructor`.

eXist-db:

1. Update the built-in function definitions to eXist-db 5.3. Thanks to Juri Leino for providing
the built-in function definitions.

MarkLogic Rewriter XML Integration:

1. Cache the endpoints to improve the line marker performance when the data has been previously calculated.
2. In the Endpoints tool window navigate to the module file, not the rewriter XML element that references it.

MarkLogic Search Options XML Integration:

1. Support resolving `parse/@at`, `start-facet/@at`, and `finish-facet/@at` attribute values in XQuery direct
constructors to the XQuery/MJS/SJS file they reference.
2. Support resolving `parse/@apply`, `start-facet/@apply`, and `finish-facet/@apply` attribute values in XQuery
direct constructors to the XQuery function they reference.
3. Add line markers to functions referenced by custom facets in search options XQuery direct constructors.
10 changes: 10 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@
]]></description>

<change-notes><![CDATA[
<ol>
<li>In-place rename refactoring support for variables.</li>
<li>
Support for <code>@apply</code> and <code>@at</code> in MarkLogic search option custom facet
extensions within XQuery code.
</li>
<li>Update the built-in function definitions to eXist-db 5.3.</li>
<li>Code folding for the remaining `{...}` constructs.</li>
<li>Bug fixes and general improvements.</li>
</ol>
<p>IntelliJ Integration:</p>
<ol>
<li>Add paired brace matching for Saxon context item and lambda functions.</li>
Expand Down

0 comments on commit c69333d

Please sign in to comment.