Merge #37

37: Add both variants of half open range patterns to the grammar r=lf- a=lf-

This is prompted by
https://github.com/rust-analyzer/rust-analyzer/issues/9779, but it
is not actually a prerequisite of making that one happen as this commit
doesn't change the generated code on the r-a side.

Relevant PR (that does not require this one be merged immediately/a release made): https://github.com/rust-analyzer/rust-analyzer/pull/9780

Co-authored-by: Jade <software@lfcode.ca>
diff --git a/Cargo.toml b/Cargo.toml
index 067b9b3..79f3c39 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,9 @@
 [package]
 name = "ungrammar"
 description = "A DSL for describing concrete syntax trees"
-version = "1.14.3"
+version = "1.14.4"
 license = "MIT OR Apache-2.0"
 repository = "https://github.com/matklad/ungrammar"
-authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
 edition = "2018"
 
 exclude = ["/bors.toml", "/.github"]
diff --git a/rust.ungram b/rust.ungram
index 6bb123a..52bdf32 100644
--- a/rust.ungram
+++ b/rust.ungram
@@ -603,7 +603,12 @@
   '_'
 
 RangePat =
-  start:Pat op:('..' | '..=') end:Pat
+  // 1..
+  start:Pat op:('..' | '..=')
+  // 1..2
+  | start:Pat op:('..' | '..=') end:Pat
+  // ..2
+  | op:('..' | '..=') end:Pat
 
 RefPat =
   '&' 'mut'? Pat