Skip to content
Snippets Groups Projects
Verified Commit 053e30b5 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: CQL now treats 'WITH` and `WITH A` equivalently. For #192.

parent 455ac7a2
Branches
Tags
2 merge requests!96DOC: Added CITATION.cff to the list of files in the release guide where the...,!83CQL now treats 'WITH` and `WITH A` equivalently. For #192.
Pipeline #34142 passed
...@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### ### Changed ###
- CQL now treats `WITH` and `WITH A` equivalently. This is for [#192](https://gitlab.com/caosdb/caosdb-server/-/issues/192).
### Deprecated ### ### Deprecated ###
### Removed ### ### Removed ###
......
...@@ -277,10 +277,6 @@ NEGATION: ...@@ -277,10 +277,6 @@ NEGATION:
) WHITE_SPACE_f? ) WHITE_SPACE_f?
; ;
WITH:
[Ww][Ii][Tt][Hh] WHITE_SPACE_f?
;
THE: THE:
[Tt][Hh][Ee] WHITE_SPACE_f? [Tt][Hh][Ee] WHITE_SPACE_f?
; ;
...@@ -309,6 +305,10 @@ ELSE: ...@@ -309,6 +305,10 @@ ELSE:
[Ee][Ll][Ss][Ee] WHITE_SPACE_f? [Ee][Ll][Ss][Ee] WHITE_SPACE_f?
; ;
WITH_A:
[Ww][Ii][Tt][Hh] (WHITE_SPACE_f? A)? WHITE_SPACE_f?
;
WHERE: WHERE:
[Ww][Hh][Ee][Rr][Ee] WHITE_SPACE_f? [Ww][Hh][Ee][Rr][Ee] WHITE_SPACE_f?
; ;
......
...@@ -129,7 +129,7 @@ entity_filter returns [EntityFilterInterface filter] ...@@ -129,7 +129,7 @@ entity_filter returns [EntityFilterInterface filter]
which_exp: which_exp:
WHICH (HAS_A (PROPERTY)?)? WHICH (HAS_A (PROPERTY)?)?
| HAS_A (PROPERTY)? | HAS_A (PROPERTY)?
| WITH (A (PROPERTY)?)? | WITH_A (PROPERTY)?
| WHERE | WHERE
| DOT WHITE_SPACE? | DOT WHITE_SPACE?
; ;
...@@ -527,7 +527,7 @@ number_with_unit ...@@ -527,7 +527,7 @@ number_with_unit
unit unit
: :
(~(WHITE_SPACE | WHICH | HAS_A | WITH | WHERE | DOT | AND | OR | RPAREN )) (~(WHITE_SPACE | WHICH | HAS_A | WITH_A | WHERE | DOT | AND | OR | RPAREN ))
(~(WHITE_SPACE))* (~(WHITE_SPACE))*
| |
NUM SLASH (~(WHITE_SPACE))+ NUM SLASH (~(WHITE_SPACE))+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment