File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 8
8
- Add ` meta.embedded.block.{quasi-quoter} ` scope to quasi-quotations.
9
9
- Ensure highlighting of unicode forall syntax matches that of alphabetic forall syntax
10
10
([ #175 ] ( https://github.com/JustusAdam/language-haskell/issues/175 ) ).
11
+ - Fix highlighting of empty quasi-quotations such as ` [i||] ` .
11
12
12
13
## 3.3.0 - 25.06.2020
13
14
Original file line number Diff line number Diff line change @@ -1721,7 +1721,7 @@ repository:
1721
1721
(?x)
1722
1722
(\[)
1723
1723
(e|d|p)?
1724
- (\|\| ?)
1724
+ (\|(?:\|(?!\])) ?)
1725
1725
beginCaptures:
1726
1726
'1': {name: keyword.operator.quasi-quotation.begin.haskell}
1727
1727
'2': {name: entity.name.quasi-quoter.haskell}
@@ -1736,7 +1736,7 @@ repository:
1736
1736
(?x)
1737
1737
(\[)
1738
1738
(t)
1739
- (\|\| ?)
1739
+ (\|(?:\|(?!\])) ?)
1740
1740
beginCaptures:
1741
1741
'1': {name: keyword.operator.quasi-quotation.begin.haskell}
1742
1742
'2': {name: entity.name.quasi-quoter.haskell}
@@ -1754,7 +1754,7 @@ repository:
1754
1754
(?!'\|') # Don't parse ['|'...] as a quasi quotation
1755
1755
((?:[\p{Lu}\p{Lt}][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}']*\.)*) # Optional qualifier
1756
1756
((?:[^\s\p{S}\p{P}]|['_])*) # Quasi-quoter
1757
- (\|\| ?)
1757
+ (\|(?:\|(?!\])) ?)
1758
1758
beginCaptures:
1759
1759
'1': {name: keyword.operator.quasi-quotation.begin.haskell}
1760
1760
'2': {name: keyword.operator.prefix.double-dollar.haskell}
Original file line number Diff line number Diff line change
1
+ -- SYNTAX TEST "source.haskell" "Empty quasi-quote"
2
+
3
+ instance Show NixIndexException where
4
+ show (NixEnvFail errCode _ _) = [i ||]
5
+ -- ^ ^ keyword.operator.quasi-quotation.begin.haskell
6
+ -- ^ entity.name.quasi-quoter.haskell
7
+ -- ^^ keyword.operator.quasi-quotation.end.haskell
8
+ show ParseNixEnvResError = " Failed to parse the output of nix-env"
9
+ -- <------------------------------------------------------------------ - meta.quasi-quotation.haskell
10
+
11
+ type S = String
12
+
13
+ -- <--------------- -meta.quasi-quotation.haskell
You can’t perform that action at this time.
0 commit comments