Skip to content

Commit bfc739f

Browse files
committed
fix(syntax): avoid treating Haskell operators as comments
1 parent 7896398 commit bfc739f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
## Syntaxes
5050

51+
- Fix Haskell highlighting for operators that start with double dashes, see #TBD (@imwyvern)
5152
- Add shebang-based detection for Tcl (`tclsh`, `wish`) and Expect (`expect`) scripts, see #3647 (@mvanhorn)
5253
- Change the URL of Zig submodule from GitHub to Codeberg, see #3519 (@sorairolake)
5354
- Don't color strings inside CSV files, to make it easier to tell which column they belong to, see #3521 (@keith-hall)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git syntaxes/01_Packages/Haskell/Haskell.sublime-syntax syntaxes/01_Packages/Haskell/Haskell.sublime-syntax
2+
index e45d6734..264e528a 100644
3+
--- syntaxes/01_Packages/Haskell/Haskell.sublime-syntax
4+
+++ syntaxes/01_Packages/Haskell/Haskell.sublime-syntax
5+
@@ -199,7 +199,7 @@ contexts:
6+
scope: punctuation.definition.comment.end.haskell
7+
pop: true
8+
comments:
9+
- - match: '--'
10+
+ - match: '--+(?=$|[^|!%$?~+:\-.=</>\\])'
11+
scope: punctuation.definition.comment.haskell
12+
push:
13+
- meta_scope: comment.line.double-dash.haskell

0 commit comments

Comments
 (0)