-
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add doc and ci test for semantic tokens (#3938)
* add doc and ci test for semantic tokens * fix, semantic tokens test files, case sensitivity issue
- Loading branch information
Showing
6 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
plugins/hls-semantic-tokens-plugin/test/testdata/TDataFamily.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{-# LANGUAGE TypeFamilies #-} | ||
module TDatafamily where | ||
|
||
-- Declare a list-like data family | ||
data family XList a | ||
|
||
-- Declare a list-like instance for Char | ||
data instance XList Char = XCons !Char !(XList Char) | XNil | ||
|
||
-- Declare a number-like instance for () | ||
data instance XList () = XListUnit !Int |
3 changes: 3 additions & 0 deletions
3
plugins/hls-semantic-tokens-plugin/test/testdata/TDataType.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module TDataType where | ||
|
||
data Foo = Foo Int deriving (Eq) |
7 changes: 7 additions & 0 deletions
7
plugins/hls-semantic-tokens-plugin/test/testdata/TPatternSyn.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{-# LANGUAGE PatternSynonyms #-} | ||
module TPatternSyn where | ||
|
||
|
||
pattern Foo = 1 | ||
|
||
|