Portability | portable |
---|---|
Stability | experimental |
Maintainer | yi-devel@googlegroups.com |
Safe Haskell | None |
Definitions for the bulk of modes shipped with Yi.
- type TokenBasedMode tok = Mode (Tree (Tok tok))
- fundamentalMode :: Mode syntax
- cMode :: StyleBasedMode
- objectiveCMode :: StyleBasedMode
- cppMode :: StyleBasedMode
- cabalMode :: StyleBasedMode
- srmcMode :: StyleBasedMode
- ocamlMode :: TokenBasedMode Token
- ottMode :: StyleBasedMode
- gnuMakeMode :: StyleBasedMode
- perlMode :: StyleBasedMode
- pythonMode :: StyleBasedMode
- javaMode :: StyleBasedMode
- jsonMode :: StyleBasedMode
- anyExtension :: [String] -> FilePath -> a -> Bool
- extensionOrContentsMatch :: [String] -> String -> FilePath -> YiString -> Bool
- linearSyntaxMode :: Show s => s -> TokenLexer AlexState s (Tok t) AlexInput -> (t -> StyleName) -> TokenBasedMode t
- svnCommitMode :: StyleBasedMode
- hookModes :: (AnyMode -> Bool) -> BufferM () -> [AnyMode] -> [AnyMode]
- applyModeHooks :: [(AnyMode -> Bool, BufferM ())] -> [AnyMode] -> [AnyMode]
- lookupMode :: AnyMode -> YiM AnyMode
- whitespaceMode :: StyleBasedMode
- gitCommitMode :: TokenBasedMode Token
- rubyMode :: StyleBasedMode
- styleMode :: Show (l s) => StyleLexer l s t i -> TokenBasedMode t
Documentation
type TokenBasedMode tok = Mode (Tree (Tok tok))Source
fundamentalMode :: Mode syntaxSource
objectiveCMode :: StyleBasedModeSource
gnuMakeMode :: StyleBasedModeSource
pythonMode :: StyleBasedModeSource
:: [String] | List of extensions |
-> FilePath | Path to compare against |
-> a | File contents. Currently unused but see
|
-> Bool |
When applied to an extensions list, creates a modeApplies
function.
extensionOrContentsMatch :: [String] -> String -> FilePath -> YiString -> BoolSource
When applied to an extensions list and regular expression pattern, creates
a modeApplies
function.
:: Show s | |
=> s | Starting state |
-> TokenLexer AlexState s (Tok t) AlexInput | |
-> (t -> StyleName) | |
-> TokenBasedMode t |
Specialised version of linearSyntaxMode'
for the common case,
wrapping up into a Lexer
with commonLexer
.
svnCommitMode :: StyleBasedModeSource
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.
whitespaceMode :: StyleBasedModeSource
styleMode :: Show (l s) => StyleLexer l s t i -> TokenBasedMode tSource