diff --git a/src/App/Gui.hs b/src/App/Gui.hs index 689258b..ec99aaf 100644 --- a/src/App/Gui.hs +++ b/src/App/Gui.hs @@ -91,6 +91,12 @@ appEvent st ev -- TODO Refactor parts into SyntaxChecker.hs somehow +-- Rough idea: +-- 1) make some monad that carries kind of markup-info +-- state from one checker function to the next +-- 2) call checker functions in editor +-- 3) get (combined) markup-info from checkers +-- 4) apply markup-info in editor function brackets :: [(Char,Char)] brackets = [('(',')'),('[',']'),('{','}')]