License | GPL-2 |
---|---|
Maintainer | yi-devel@googlegroups.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
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
- clojureMode :: 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 syntax Source
objectiveCMode :: StyleBasedMode Source
clojureMode :: StyleBasedMode Source
gnuMakeMode :: StyleBasedMode Source
pythonMode :: StyleBasedMode Source
:: [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 -> Bool Source
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 :: StyleBasedMode 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 AnyMode Source
Check whether a mode of the same name is already in modeTable and returns the original mode, if it isn't the case.
whitespaceMode :: StyleBasedMode Source
styleMode :: Show (l s) => StyleLexer l s t i -> TokenBasedMode t Source