Skip to content

Commit

Permalink
Merge pull request #34 from e-bigmoon/T33
Browse files Browse the repository at this point in the history
Fix existing test cases for hamlet (ver 0.8.0)
  • Loading branch information
waddlaw authored May 20, 2021
2 parents cef7a0f + 31c3b3e commit 6339262
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

## [Unreleased]

### Changed

- Fix existing test cases for hamlet (ver 0.8.0) [#34](https://github.com/e-bigmoon/vscode-language-yesod/pull/34) @isao-takejib
- Fixed workflow in Github actions [#26](https://github.com/e-bigmoon/vscode-language-yesod/pull/26) @isao-takejib

## [0.8.0] - 2021-04-18

### Added
Expand All @@ -16,7 +21,6 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
### Changed

- Hamlet TextMate rule improvements [#29](https://github.com/e-bigmoon/vscode-language-yesod/pull/29) @bi-functor
- Fixed workflow in Github actions [#26](https://github.com/e-bigmoon/vscode-language-yesod/pull/26) @isao-takejib

## [0.7.0] - 2021-03-13

Expand Down
21 changes: 15 additions & 6 deletions test/tests/hamlet/tag.hamlet
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
$# SYNTAX TEST "source.yesod.hamlet" "simple tags"
<body>
$# <- meta.embedded.line.hamlet
$# ^ meta.embedded.line.hamlet
$# <- meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# <~---- meta.tag.hamlet entity.name.tag.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.end.hamlet
<p>Some paragraph.
$# ^^^ meta.embedded.line.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# ^ meta.tag.hamlet entity.name.tag.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.end.hamlet
<ul>
$# ^^^^ meta.embedded.line.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# ^^ meta.tag.hamlet entity.name.tag.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.end.hamlet
<li>Item 1
$# ^^^^ meta.embedded.line.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# ^^ meta.tag.hamlet entity.name.tag.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.end.hamlet
<li>Item 2
$# ^^^^ meta.embedded.line.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# ^^ meta.tag.hamlet entity.name.tag.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.end.hamlet
9 changes: 6 additions & 3 deletions test/tests/hamlet/whitespace.hamlet
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
$# SYNTAX TEST "source.yesod.hamlet" "Preserve whitespace"
<p>
$# <- meta.embedded.line.hamlet
$#^ meta.embedded.line.hamlet
$# <- meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# <~- meta.tag.hamlet entity.name.tag.hamlet
$# <~~- meta.tag.hamlet punctuation.definition.generic.end.hamlet
Paragraph #
$# ^ keyword.operator.hamlet
<i>italic
$# ^^^ meta.embedded.line.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.begin.hamlet
$# ^ meta.tag.hamlet entity.name.tag.hamlet
$# ^ meta.tag.hamlet punctuation.definition.generic.end.hamlet
\ end.
$# ^ keyword.operator.hamlet

0 comments on commit 6339262

Please sign in to comment.