Safe Haskell | Safe-Infered |
---|
- type TokenBasedMode tok = Mode (Tree (Tok tok))
- fundamentalMode :: Mode syntax
- svnCommitMode, rubyMode, javaMode, pythonMode, perlMode, gnuMakeMode, ottMode, srmcMode, cabalMode, cppMode, objectiveCMode, cMode :: StyleBasedMode
- ocamlMode :: TokenBasedMode Token
- anyExtension :: [String] -> FilePath -> String -> Bool
- extensionOrContentsMatch :: [String] -> String -> FilePath -> String -> Bool
- linearSyntaxMode :: forall lexerState t. Show lexerState => lexerState -> ((AlexState lexerState, AlexInput) -> Maybe (Tok t, (AlexState lexerState, AlexInput))) -> (t -> StyleName) -> Mode (Tree (Tok t))
- hookModes :: (AnyMode -> Bool) -> BufferM () -> [AnyMode] -> [AnyMode]
- applyModeHooks :: [(AnyMode -> Bool, BufferM ())] -> [AnyMode] -> [AnyMode]
- lookupMode :: AnyMode -> YiM AnyMode
- whitespaceMode :: TokenBasedMode StyleName
- removeAnnots :: Mode a -> Mode a
- gitCommitMode :: Mode (Tree (Tok Token))
Documentation
type TokenBasedMode tok = Mode (Tree (Tok tok))Source
fundamentalMode :: Mode syntaxSource
svnCommitMode, rubyMode, javaMode, pythonMode, perlMode, gnuMakeMode, ottMode, srmcMode, cabalMode, cppMode, objectiveCMode, cMode :: StyleBasedModeSource
anyExtension :: [String] -> FilePath -> String -> BoolSource
When applied to an extensions list, creates a modeApplies
function.
extensionOrContentsMatch :: [String] -> String -> FilePath -> String -> BoolSource
When applied to an extensions list and regular expression pattern, creates
a modeApplies
function.
linearSyntaxMode :: forall lexerState t. Show lexerState => lexerState -> ((AlexState lexerState, AlexInput) -> Maybe (Tok t, (AlexState lexerState, AlexInput))) -> (t -> StyleName) -> Mode (Tree (Tok t))Source
hookModes :: (AnyMode -> Bool) -> BufferM () -> [AnyMode] -> [AnyMode]Source
Adds a hook to all matching hooks in a list
applyModeHooks :: [(AnyMode -> Bool, BufferM ())] -> [AnyMode] -> [AnyMode]Source
Apply a list of mode hooks to a list of AnyModes
lookupMode :: AnyMode -> YiM AnyModeSource
Check whether a mode of the same name is already in modeTable and returns the original mode, if it isn't the case.
removeAnnots :: Mode a -> Mode aSource
gitCommitMode :: Mode (Tree (Tok Token))Source