Skip to content

Commit

Permalink
[Haskell] match (--*) in punctuation.definition.comment.haskell (#2628)
Browse files Browse the repository at this point in the history
This commit fixes highlighting of comments which start with more than 2 dashes.
  • Loading branch information
moodmosaic authored Aug 19, 2021
1 parent 29f887f commit 6c1c3bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Haskell/Haskell.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ contexts:
comment:
# As of build 4079 the [:punct:] class is missing some ASCII chars that
# Unicode considers part of the Symbol category.
- match: '--(?![[:punct:]!-/:-@\[-`{-~])'
- match: '--+(?![[:punct:]!-/:-@\[-`{-~])'
scope: punctuation.definition.comment.haskell
push:
- meta_scope: comment.line.double-dash.haskell
Expand Down
3 changes: 3 additions & 0 deletions Haskell/syntax_test_haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
23*36 -- single line comment
-- ^^ punctuation.definition.comment.haskell
-- ^^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-dash.haskell
23*36 --------------------------------------------------- single line comment
-- ^ - comment - punctuation
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment.line.double-dash.haskell punctuation.definition.comment.haskell
23*36
-- <- - comment.line.double-dash.haskell

Expand Down

0 comments on commit 6c1c3bc

Please sign in to comment.