Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lang/sunlight.haskell.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
line = context.reader.getLine(),
column = context.reader.getColumn();

if (context.reader.current() !== "'" && peek !== "'") {
if (context.reader.current() !== "'") {
return null;
}

Expand Down
15 changes: 14 additions & 1 deletion tests/test-haskell.html
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,19 @@
(TextDetails_Chr 'a') 1 Doc_Empty))))))))))) (Doc_NilAbove (Doc_Nest
-}

-- Extra code to test identifiers with single quotes in them.
-- Only 'c' should be highlighted as a character literal,
-- the rest are legal identifiers.

c :: Char
c = c'
where c' = c''
c'' = c'''
c''' = c'c'
c'c' = c'c''
c'c'' = c''c''
c''c'' = 'c'

</pre>
</body>

Expand All @@ -1008,4 +1021,4 @@
//assertExists("rule", "@import", "css rule declaration");

//]]></script>
</html>
</html>