Skip to content

Commit

Permalink
Remove unused code in highlighter
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerg committed Aug 2, 2024
1 parent a1a2821 commit ba3d554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Binary file modified docs/interpreters/latest/tinyapl-js.wasm
Binary file not shown.
10 changes: 2 additions & 8 deletions src/TinyAPL/Highlighter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@ data Color
| CComment
deriving (Enum, Show)

data In
= Default
| String
| Comment

data HState = HState
{ hIn :: In
, hColors :: [Color]
{ hColors :: [Color]
, hStr :: String }

type HSt = State HState

highlight :: String -> [Color]
highlight str = reverse $ hColors $ execState hl (HState Default [] str) where
highlight str = reverse $ hColors $ execState hl (HState [] str) where
atEnd :: HSt Bool
atEnd = do
str <- gets hStr
Expand Down

0 comments on commit ba3d554

Please sign in to comment.